Use default value for version when git tags not present

Also, documentation typo correction.

Change-Id: I7fe4de05d3b8fb808a980862a09a9be32ed32bf5


[ROCm/rocm_smi_lib commit: fe4f7ed4a1]
This commit is contained in:
Chris Freehill
2019-12-19 08:32:38 -06:00
والد ddbe8013fe
کامیت 322d1ff303
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
@@ -23,7 +23,11 @@ commits_since_last_tag() {
CURR_CMT_NUM=`git rev-list --count $CURRENT_TAG`
# Commits since prevous tag:
let NUM_COMMITS="${CURR_CMT_NUM}-${PREV_CMT_NUM}"
if [[ -z $PREV_CMT_NUM || -z $CURR_CMT_NUM ]]; then
let NUM_COMMITS="0"
else
let NUM_COMMITS="${CURR_CMT_NUM}-${PREV_CMT_NUM}"
fi
echo $NUM_COMMITS
}
@@ -21,7 +21,7 @@ In order to build the latest documentation, the following are required:
The source code for ROCm SMI is available on [Github](https://github.com/RadeonOpenCompute/rocm_smi_lib).
After the the ROCm SMI library git repository has been cloned to a local Linux machine, building the library is achieved by following the typical CMake build sequence. Specifically,
After the ROCm SMI library git repository has been cloned to a local Linux machine, building the library is achieved by following the typical CMake build sequence. Specifically,
##### ```$ mk -p build```
##### ```$ cd build```
##### ```$ cmake <location of root of ROCm SMI library CMakeLists.txt>```
فایل باینری نشان داده نشده است.