diff --git a/scripts/version.sh b/scripts/version.sh index 6a7efdec9..156b93d26 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -29,9 +29,10 @@ set -e VERSION=$(git describe --abbrev=0 --always) REVISION=$(git rev-list ${VERSION}.. --count) +COMMENT=$(git rev-list HEAD --max-count=1 | cut -c1-9) if [ "${REVISION}" != "0" ]; then # must construct full version string manually VERSION=${VERSION}_${REVISION} fi -echo ${VERSION} +echo ${VERSION}-${COMMENT}