From 92bc6ed552fc6009265e5aac0ed8a3a187d563d9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 16 Nov 2021 14:59:18 -0500 Subject: [PATCH] Allow NOW or CURRENT for PACKAGE_VERSION similar to snapshot --- utils/do_debian_package.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 9a6d85510..0f23cfee8 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -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