diff --git a/projects/amdsmi/cmake_modules/version_util.sh b/projects/amdsmi/cmake_modules/version_util.sh index eb49576fcf..5c1ded9631 100755 --- a/projects/amdsmi/cmake_modules/version_util.sh +++ b/projects/amdsmi/cmake_modules/version_util.sh @@ -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 } diff --git a/projects/amdsmi/docs/README.md b/projects/amdsmi/docs/README.md index 0fb1a2c82e..ff1a5087b2 100755 --- a/projects/amdsmi/docs/README.md +++ b/projects/amdsmi/docs/README.md @@ -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 ``` diff --git a/projects/amdsmi/docs/ROCm_SMI_Manual.pdf b/projects/amdsmi/docs/ROCm_SMI_Manual.pdf index 53f5645fdb..c5dce64016 100644 Binary files a/projects/amdsmi/docs/ROCm_SMI_Manual.pdf and b/projects/amdsmi/docs/ROCm_SMI_Manual.pdf differ