summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-08 22:20:33 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-08 22:20:33 +0100
commit807de454f03e3f0265817c336338afcf9a2a5382 (patch)
treebd5ef17f161724799c520f880fad4c8936b26627
parent8c371841a4f19bc6292fbc9fb370b2be2e080c08 (diff)
Tweak release script.
-rwxr-xr-xrelease10
1 files changed, 8 insertions, 2 deletions
diff --git a/release b/release
index d9466132..e87c1ac9 100755
--- a/release
+++ b/release
@@ -56,12 +56,18 @@ release_version_string = rewrite_wscript(release_version)
#append_to_changelog(release_version_string)
command("git diff")
-if (raw_input() != "y"):
+if raw_input() != "y":
command("git reset --hard")
print 'Aborted'
sys.exit(1)
command("git commit -a -m \"Bump version\"")
+print "git cleaning..."
+command("git clean -n")
+if raw_input() != "y":
+ print 'Aborted'
+ sys.exit(1)
+command("git clean")
command("git tag -m \"v%s\" v%s" % (release_version_string, release_version_string))
command("./waf clean")
command("./waf")
@@ -71,7 +77,7 @@ command("./waf dist")
rewrite_wscript(new_pre_version)
command("git diff")
-if (raw_input() != "y"):
+if raw_input() != "y":
command("git reset --hard")
print 'Aborted'
sys.exit(1)