diff --git a/config/version.tex b/config/version.tex index ad9240ae..344ac336 100644 --- a/config/version.tex +++ b/config/version.tex @@ -1 +1 @@ -\newcommand{\zjuthesisversion}{3.0.0} +\newcommand{\zjuthesisversion}{3.1.0} diff --git a/script/draft_new_version.sh b/script/draft_new_version.sh new file mode 100755 index 00000000..c6cf84c5 --- /dev/null +++ b/script/draft_new_version.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +old_ver=$(perl -lne 'print $1 if /([0-9]+\.[0-9]+\.[0-9]+)/' config/version.tex) +new_ver=$1 + +echo "$old_ver ==> $new_ver" +echo "Press any key to proceed" +read + +echo "Update config/version.tex" +sed -r -i "s/[0-9]+\.[0-9]+\.[0-9]+/$new_ver/" config/version.tex || true +cat config/version.tex +echo "Press any key to proceed" +read + +git add config/version.tex +git commit + +echo "Press any key to tag current commit" +read +git tag -a "v$new_ver" \ No newline at end of file