##// END OF EJS Templates
Added instructions on building the documentation...
Added instructions on building the documentation (patch: Jörgen Stenarson <jorgen.stenarson@bostream.nu>, with some mods) Updated the update_manual.py script to os.abort() at the end, also added shebang.

File last commit:

r102:a54f3f3a
r102:a54f3f3a
Show More
update_manual.py
28 lines | 526 B | text/x-python | PythonLexer
#!/usr/bin/env ipython
""" Must be launched via ipython not normal python
Run by:
ipython update_manual.py
"""
import sys,IPython,re
fil=open("magic.tex","w")
oldout=sys.stdout
sys.stdout=fil
ipmagic("magic -latex")
sys.stdout=oldout
fil.close()
fil=open("manual_base.lyx")
txt=fil.read()
fil.close()
manualtext=re.sub("__version__",IPython.__version__,txt)
fil=open("manual.lyx","w")
fil.write(manualtext)
fil.close()
print "Manual (magic.tex, manual.lyx) succesfully updated, exiting..."
import os
os.abort()