]> code.citadel.org Git - citadel.git/blobdiff - do-release.sh
setup was still in the makefile , oooops
[citadel.git] / do-release.sh
index a981b9d6c661fa6c964ae64bdcc9d822ab0d3d2e..bf4824918ffc081b3132fbe74ec421407de34512 100755 (executable)
@@ -1,9 +1,7 @@
 #!/bin/bash
 
-# Identify the version numbers embedded in these components.
-# This is not very useful on its own.  It will become part of a build system later.
-
-
+# Find the highest version number used in any component, increment it by one, and update
+# all components to use the new version number.  Then generate a commit and a tag.
 
 echo -e '\033[2J\033[H'
 echo -e '\033[34m\033[1m'
@@ -64,7 +62,8 @@ echo -e '\033[37m\033[1mUpdating release_version.txt to indicate version '${NEW_
 echo -e '\033[37m\033[1mGenerating a commit\033[0m'
 echo -e ''
 git commit -a -m "Release version ${NEW_VERSION} generated by do-release.sh"
+git tag -a v${NEW_VERSION} -m "Version ${NEW_VERSION} release"
 
 echo -e ''
-echo -e '\033[37m\033[1mFinished.  Remember to push this commit.\033[0m'
+echo -e '\033[37mFinished.  Remember to \033[7mgit push\033[0m and then \033[7mgit push --tags\033[0m'
 echo -e ''