Bump version
[libdcp.git] / release
diff --git a/release b/release
index d9466132f96a6a2613b0178ec815969de10af84d..12e7b7fe45b0f3d3cf473bad2b93b0db5fa879ee 100755 (executable)
--- a/release
+++ b/release
@@ -56,22 +56,28 @@ 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 -f")
 command("git tag -m \"v%s\" v%s" % (release_version_string, release_version_string))
 command("./waf clean")
-command("./waf")
 command("./waf configure")
+command("./waf")
 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)