##// END OF EJS Templates
cody precord: small patch to fix a compatibility issue between python2.5 and 2.4
cody precord: small patch to fix a compatibility issue between python2.5 and 2.4

File last commit:

r1167:eae36089
r1171:ea2c6247
Show More
do_sphinx.py
18 lines | 527 B | text/x-python | PythonLexer
import os,sys
def oscmd(c):
os.system(c)
oscmd('sphinx-build -d build/doctrees source build/html')
if sys.platform != 'win32':
oscmd('sphinx-build -b latex -d build/doctrees source build/latex')
os.chdir('build/latex')
oscmd('pdflatex ipython.tex')
oscmd('pdflatex ipython.tex')
oscmd('pdflatex ipython.tex')
oscmd('makeindex -s python.ist ipython.idx')
oscmd('makeindex -s python.ist modipython.idx')
oscmd('pdflatex ipython.tex')
oscmd('pdflatex ipython.tex')
os.chdir('../..')