From cd28dd385b710a1a19657b04ba513556fc741249 Mon Sep 17 00:00:00 2001 From: Sahil Ahuja Date: Wed, 5 Feb 2025 19:21:17 +0530 Subject: [PATCH] Updating basetag --- basetag.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/basetag.sh b/basetag.sh index 7acf05f..94fac78 100755 --- a/basetag.sh +++ b/basetag.sh @@ -1,20 +1,20 @@ #!/bin/bash -## Creating new releases - +# #For a fresh repo / Creating new releases # git add -A; # git commit -m "" -# #Minor version -# git tag -a -m "" v1.0.1 +# #Setting a tag +# git tag -a -m "" v1.0.0 # git push --follow-tags -# #Moving major version +# #Moving a tag (eg: for major version retagging) # git tag -fa v1 # git push --tags -f -# https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351 +# Based on https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351 +# Commit with a log containing #minor or #major to increment the respective version number #get highest tag number containing at least 2 dots -VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.*\.*"` +VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"` #replace . with space so can split into an array VERSION_BITS=(${VERSION//./ })