Allow NOW or CURRENT for PACKAGE_VERSION similar to snapshot
This commit is contained in:
parent
1561adbef9
commit
ab9c538c37
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue