From 7e3c1561d5dd5e03926aab60b81c62c8b728cac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 Nov 2017 17:17:11 +0100 Subject: Update updaer-ng-auto --- utils/updater-ng-auto.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/updater-ng-auto.sh b/utils/updater-ng-auto.sh index 23eea64..a4d4194 100755 --- a/utils/updater-ng-auto.sh +++ b/utils/updater-ng-auto.sh @@ -19,8 +19,9 @@ else fi # Get info HASH="$(git $GIT_ARGS rev-parse HEAD)" -VERSION="$(git $GIT_ARGS describe --abbrev=0 --tags | sed 's/^v//').99999" -RELEASE="$(($(git $GIT_ARGS rev-list --count $VERSION..HEAD) + 1))" +VERSION="$(git $GIT_ARGS describe --abbrev=0 --tags | sed 's/^v//')" +RELEASE="$(($(git $GIT_ARGS rev-list --count v$VERSION..HEAD) + 1))" +VERSION="$VERSION.99999" # Now replace stuff in Makefile sed -i "s/^PKG_VERSION:=.*/PKG_VERSION:=$VERSION/;s/^PKG_RELEASE:=.*/PKG_RELEASE:=$RELEASE/;s/^PKG_SOURCE_VERSION:=.*/PKG_SOURCE_VERSION:=$HASH/" $1/updater-ng-auto/Makefile -- cgit v1.2.3