summaryrefslogtreecommitdiffstats
blob: 9d776c0e771dfbfc1a6d4c59c0f8c22d057aad6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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("alpha", "~alpha")
version = version.replace("-dev", "+dev")

print version