diff --git a/buildVersion.py b/buildVersion.py index 27fbd4ebe6b1b4d994bc81d05903e84ec015f16d..3cf234ce38672c237c4deedb18e65053a5cfaacd 100755 --- a/buildVersion.py +++ b/buildVersion.py @@ -92,18 +92,22 @@ def git(): if version in fi.read(): print "\n\ttag %s already exit in git" % version sys.exit(1) - + + # release message + m = "Release version %s" % version + # Commit the new release in git an tag it print 'git add', JSBASE, CHANGELOG cmd = ["git", "add", JSBASE, CHANGELOG] subprocess.call(cmd) print 'git commit' - cmd = ["git", "commit", "-m", "Release version %s" % version] + cmd = ["git", "commit", "-m", m] subprocess.call(cmd) + # annotated tag print 'git tag', version - cmd = ["git", "tag", version] + cmd = ["git", "tag", "-a", version, "-m", m] subprocess.call(cmd)