diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:20:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:20:48 +0000 |
| commit | d9c086704e8a23ac2360fd9c0ae1f8a5cd703086 (patch) | |
| tree | 5a9ea2fb744b77013f3a55495730ee6373827721 /release | |
| parent | a21cd26c3221dd07f8a364b232baafdb93665f95 (diff) | |
Release script tweaks.
Diffstat (limited to 'release')
| -rwxr-xr-x | release | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -30,7 +30,7 @@ def check_diff_with_user(): print 'Aborted' sys.exit(1) -if os.popen('git status -s').read() != '': +if not args.debug and os.popen('git status -s').read() != '': print '%s: uncommitted changes exist.' % sys.argv[0] sys.exit(1) @@ -55,13 +55,9 @@ check_diff_with_user() command("git commit -a -m \"Bump version\"") command("git tag -m \"v%s\" v%s" % (new_version, new_version)) -m = version.Version.bump_and_to_pre -if args.beta: - m = version.Version.to_pre -version.rewrite_wscript(m) - -check_diff_with_user() - -command("git commit -a -m \"Bump version\"") +if args.release: + version.rewrite_wscript(version.Version.bump_and_to_pre) + check_diff_with_user() + command("git commit -a -m \"Bump version\"") command("cp DVD-o-matic*.exe dvdomatic-*.tar.bz2 /home/carl/public_html/carlh.net/software/dvdomatic") |
