Teach cut_version.sh about PREVIOUS_VERSION...
authorScott Gasch <[email protected]>
Wed, 19 Oct 2022 05:50:39 +0000 (22:50 -0700)
committerScott Gasch <[email protected]>
Wed, 19 Oct 2022 05:50:39 +0000 (22:50 -0700)
cut_version.sh

index fe16ed66a3b423e2d93ab34d84c929c07a2440b9..094814dd0067fe26b8345ce4c7470b594581c51c 100755 (executable)
@@ -42,6 +42,9 @@ if [ $# -ne 1 ]; then
 fi
 
 VERSION=$1
+PREVIOUS_VERSION=$(git tag --sort=-creatordate | head -1)
+echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}"
+echo
 if ! ask_y_n "About to cut (build, test, package, give you the command to upload) $VERSION, ok?" "N"; then
     echo "Ok, exiting instead."
     exit 0