Add tag when bumping version
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 6 Dec 2019 03:34:51 +0000 (21:34 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 6 Dec 2019 03:34:51 +0000 (21:34 -0600)
bump_version

index 399890c505e9b25664941f460428ad98122c93c5..85eee35711ce11c10efa91e3e444d039a3a834ce 100755 (executable)
@@ -22,7 +22,9 @@
 
 commit_version() {
   git add src/$1/VERSION
-  git commit -m "Bump version number to $(cat src/$1/VERSION)"
+  vnum=$(cat src/$1/VERSION)
+  git commit -m "Bump version number to ${vnum}"
+  git tag -a v${vnum} -m "Version v${vnum}"
 }
 
 update_version() {