summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-13 10:23:57 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-13 10:25:51 (GMT)
commit7359f1a67ef1eeb8511a44019fd723102380c2cf (patch)
tree2d321de5e4f41f782d350c26cc6f61c7c59de5bb /BuildTools/DebianizeVersion.py
parentff8c40a4e5a5c50572449d52754639b870dc5981 (diff)
downloadswift-7359f1a67ef1eeb8511a44019fd723102380c2cf.zip
swift-7359f1a67ef1eeb8511a44019fd723102380c2cf.tar.bz2
Fix Debian versioning to be strictly increasing.
Diffstat (limited to 'BuildTools/DebianizeVersion.py')
-rwxr-xr-xBuildTools/DebianizeVersion.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/BuildTools/DebianizeVersion.py b/BuildTools/DebianizeVersion.py
new file mode 100755
index 0000000..dc5474f
--- /dev/null
+++ b/BuildTools/DebianizeVersion.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+
+import sys
+
+assert(len(sys.argv) == 2)
+
+version = sys.argv[1]
+version = version.replace("beta", "~beta")
+version = version.replace("rc", "~rc")
+version = version.replace("-dev", "+dev")
+
+print version