##// END OF EJS Templates
initialization (no svn history)
initialization (no svn history)

File last commit:

r988:2f09c2ab
r988:2f09c2ab
Show More
update_revnum.py
14 lines | 353 B | text/x-python | PythonLexer
ville
initialization (no svn history)
r988 #!/usr/bin/env python
""" Change the revision number in Release.py """
import os
import re
rev = os.popen('svnversion ..').read().strip()
print "current rev is",rev
assert ':' not in rev
rfile = open('../IPython/Release.py').read()
newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
open('../IPython/Release.py','w').write(newcont)