aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/updater-ng-auto.sh5
1 files changed, 3 insertions, 2 deletions
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