Allow NOW or CURRENT for PACKAGE_VERSION similar to snapshot

This commit is contained in:
Isaac Connor 2021-11-16 14:59:18 -05:00
parent e3d2b14b69
commit 92bc6ed552
1 changed files with 8 additions and 0 deletions

View File

@ -146,6 +146,14 @@ else
fi;
fi
if [ "$PACKAGE_VERSION" == "NOW" ]; then
PACKAGE_VERSION=`date +%Y%m%d%H%M%S`;
else
if [ "$PACKAGE_VERSION" == "CURRENT" ]; then
PACKAGE_VERSION="`date +%Y%m%d.`$(git rev-list ${versionhash}..HEAD --count)"
fi;
fi;
IFS='.' read -r -a VERSION_PARTS <<< "$RELEASE"
if [ "$PPA" == "" ]; then
if [ "$RELEASE" != "" ]; then