diff --git a/CMakeLists.txt b/CMakeLists.txt index 229fece91..555c204c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,7 +219,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) OUTPUT_STRIP_TRAILING_WHITESPACE ) - SET(GIT_LIVE_REV_CMD "`git log -1 --format=%h`.`git rev-list HEAD --count`") + SET(GIT_LIVE_REV_CMD "`git rev-list HEAD --count`.`git log -1 --format=%h`") MESSAGE(STATUS "Using GIT revision stamp: [${GIT_COMMIT_COUNT}.${GIT_SHA1}] CMD [${GIT_LIVE_REV_CMD}]") diff --git a/build-mg.sh b/build-mg.sh index d98c3d0a2..9e53eda95 100755 --- a/build-mg.sh +++ b/build-mg.sh @@ -18,7 +18,7 @@ CMAKE_ONLY=0 MAKE_ONLY=0 CLANG_FORCED=0 -while getopts "c:m:n:f:" option; do +while getopts "c:m:n:f:h" option; do case "${option}" in c) CPU_COUNT=${OPTARG} @@ -37,6 +37,18 @@ while getopts "c:m:n:f:" option; do CLANG_FORCED=${OPTARG} # echo "${option} value: ${OPTARG}" ;; + h) + echo "Usage: $0