From 8be2fe7b267a7347f35aea42d5d2fc7f56e93b46 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 1 Jan 2023 00:12:30 -0800 Subject: [PATCH] fix bumpver, sorta --- bin/bumpver | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/bumpver b/bin/bumpver index 94384a34..d0627104 100755 --- a/bin/bumpver +++ b/bin/bumpver @@ -12,8 +12,9 @@ # Most recent tag OLDTAG=`git describe --tags --abbrev=0` OLDVER=$(echo "$OLDTAG" | sed -E 's/^v[0-9]+\.[0-9]+-[a-z]+//') +OLDPRE=$(echo "$OLDTAG" | sed -E 's/[0-9]+$//') NEWVER=`expr $OLDVER + 1` -NEWTAG="v1.2-alpha$NEWVER" +NEWTAG="$OLDPRE$NEWVER" DATE=`date '+%B %d, %Y'` echo "Bumping to $NEWTAG..."