##// END OF EJS Templates
new tool to set useful (global) revision number to Release.py
vivainio -
r451:204b7185
parent child
Show More
@@ -0,0 +1,13
1 """ Change the revision number in Release.py """
2
3 import os
4 import re
5
6 rev = os.popen('svnversion').read().strip()
7
8 print "current rev is",rev
9 assert ':' not in rev
10
11 rfile = open('../IPython/Release.py').read()
12 newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
13 open('../IPython/Release.py','w').write(newcont) No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now