Add SNAPTSHOT=CURRENT to build with the commit # in the version string

This commit is contained in:
Isaac Connor 2019-10-20 11:44:19 -04:00
parent 21dd9b527d
commit bf69e053b4
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ else
fi;
if [ "$SNAPSHOT" == "NOW" ]; then
SNAPSHOT=`date +%Y%m%d%H%M%S`;
else
if [ "$SNAPSHOT" == "CURRENT" ]; then
SNAPSHOT="`date +%Y%m%d.`$(git rev-list ${versionhash}..HEAD --count)"
fi;
fi;
fi;
fi