Update docs.
[pyutils.git] / cut_version.sh
index fe16ed66a3b423e2d93ab34d84c929c07a2440b9..7e40e9866296b4ad6ebfd38f60b0a5f12d0b767a 100755 (executable)
@@ -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