X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cut_version.sh;h=7e40e9866296b4ad6ebfd38f60b0a5f12d0b767a;hb=38b139bc6d720b52765b6058d90752427a6a7e56;hp=fe16ed66a3b423e2d93ab34d84c929c07a2440b9;hpb=859e6ecc894bbd448bfb4ddc58209e8819cecebc;p=pyutils.git diff --git a/cut_version.sh b/cut_version.sh index fe16ed6..7e40e98 100755 --- a/cut_version.sh +++ b/cut_version.sh @@ -42,6 +42,11 @@ if [ $# -ne 1 ]; then fi VERSION=$1 +PREVIOUS_VERSION=$(git tag --sort=-creatordate | head -1) +git tag --format='%(creatordate:short)%09%(refname:strip=2)' +echo +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