##// END OF EJS Templates
Cleaned up release tools directory....
Cleaned up release tools directory. Converted almost all to python scripts and made toollib to collect common functions and avoid repetition. Properly commented and documented what each script does. The run_ipy_in_profiler one seems broken, I'm not sure what to do with it. We need to either fix it or remove it later, but it's not critical for 0.10.

File last commit:

r2118:ec9810f7
r2118:ec9810f7
Show More
update_revnum.py
32 lines | 701 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Change the revision number in Release.py
This edits in-place Release.py to update the revision number from bzr info.
Usage:
./update_revnum.py"""
import os
import pprint
import re
from toollib import *
if __name__ == '__main__':
ver = version_info()
pprint.pprint(ver)
rfile = open('../IPython/Release.py','rb').read()
newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
f = open('../IPython/Release.py','wb')
f.write(newcont)
f.close()