summaryrefslogtreecommitdiffstats
blob: dc5474f3bbea4c60aa7cf8060efebd1341cb9f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
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