summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2013-07-27 11:34:33 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2013-07-27 11:34:33 +0200
commit2c44c76462f1d7d5431ffa79c24c701df3fbec9b (patch)
treee2c70c624615b41a83ea2b21519074f1cd3497b1 /scripts
parentf3623ececa51d928746771cce0b31ed1a919e7e5 (diff)
downloadbabel-2c44c76462f1d7d5431ffa79c24c701df3fbec9b.tar.gz
Changed logic for bumping version numbers in release script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-release.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/make-release.py b/scripts/make-release.py
index 1374607..463ab28 100755
--- a/scripts/make-release.py
+++ b/scripts/make-release.py
@@ -49,7 +49,10 @@ def bump_version(version):
parts = map(int, version.split('.'))
except ValueError:
fail('Current version is not numeric')
- parts[-1] += 1
+ if parts[-1] != 0:
+ parts[-1] += 1
+ else:
+ parts[0] += 1
return '.'.join(map(str, parts))