From 486d7b3f271e06133f434e246f79a17ddcc92bf9 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Wed, 22 Dec 2021 11:31:54 +1000 Subject: [PATCH] Prefix version strings with 'v'. - Makes it safer to globally replace the version string. - Also emphasises its a version, not just a date. --- packaging/update-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/update-version b/packaging/update-version index c32f1dd..7c39c13 100755 --- a/packaging/update-version +++ b/packaging/update-version @@ -9,7 +9,7 @@ set -e [ -e README.md ] -NEW_VERSION=$(date "+%Y.%m.%d") +NEW_VERSION=$(date "+v%Y.%m.%d") CURRENT_VERSION=$(git describe --tags --abbrev=0) if [ $NEW_VERSION == $CURRENT_VERSION ]; then git tag --delete $CURRENT_VERSION