Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetAdmin committed Jun 11, 2019
1 parent d9a4dc2 commit 2d7ccc9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/version.tex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
\newcommand{\zjuthesisversion}{3.0.0}
\newcommand{\zjuthesisversion}{3.1.0}
21 changes: 21 additions & 0 deletions script/draft_new_version.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2d7ccc9

Please sign in to comment.