@@ -19,68 +19,70 @@ PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
1919all : book.tex
2020 makeindex book
2121 pdflatex book
22- mv book.pdf thinkpython .pdf
23- evince thinkpython .pdf
22+ mv book.pdf thinkpython2 .pdf
23+ evince thinkpython2 .pdf
2424
2525hevea : book.tex header.html footer.html
2626 # replace the pdfs with eps
27- sed s/.pdf/.eps/g book.tex > thinkpython .tex
28- latex thinkpython
27+ sed s/.pdf/.eps/g book.tex > thinkpython2 .tex
28+ latex thinkpython2
2929 rm -rf html
3030 mkdir html
31- hevea -fix -O -e latexonly htmlonly thinkpython
31+ hevea -fix -O -e latexonly htmlonly thinkpython2
3232# the following greps are a kludge to prevent imagen from seeing
3333# the definitions in latexonly, and to avoid headers on the images
34- grep -v latexonly thinkpython .image.tex > a; mv a thinkpython .image.tex
35- grep -v fancyhdr thinkpython .image.tex > a; mv a thinkpython .image.tex
36- imagen -png thinkpython
37- hacha thinkpython .html
34+ grep -v latexonly thinkpython2 .image.tex > a; mv a thinkpython2 .image.tex
35+ grep -v fancyhdr thinkpython2 .image.tex > a; mv a thinkpython2 .image.tex
36+ imagen -png thinkpython2
37+ hacha thinkpython2 .html
3838 cp up.png next.png back.png html
39- mv index.html thinkpython .css thinkpython *.html thinkpython *.png *motif.gif html
39+ mv index.html thinkpython2 .css thinkpython2 *.html thinkpython2 *.png *motif.gif html
4040
41- DEST = /home/downey/public_html/greent/thinkpython
41+ DEST = /home/downey/public_html/greent/thinkpython2
4242
4343epub :
44- cd html; ebook-convert index.html thinkpython .epub
44+ cd html; ebook-convert index.html thinkpython2 .epub
4545
4646distrib :
4747 rm -rf dist
4848 mkdir dist dist/tex dist/tex/figs
49- rsync -a thinkpython .pdf html dist
49+ rsync -a thinkpython2 .pdf html dist
5050 rsync -a Makefile book.tex latexonly htmlonly dist/tex
5151 rsync -a figs/* .fig figs/* .pdf dist/tex/figs
52- cd dist; zip -r thinkpython .tex.zip tex
53- cd dist; zip -r thinkpython .html.zip html
52+ cd dist; zip -r thinkpython2 .tex.zip tex
53+ cd dist; zip -r thinkpython2 .html.zip html
5454 rsync -a dist/* $(DEST )
5555 chmod -R o+r $(DEST ) /*
5656 cd $(DEST ) /..; sh back
5757
58+ # UPDATE THE PATHS BELOW BEFORE RUNNING PLASTEX
59+
5860plastex :
5961 # Before running plastex, we need the current directory in PYTHONPATH
6062 # export PYTHONPATH=$PYTHONPATH:.
6163 python Filist.py book.tex > book.plastex
62- rm -rf /home/downey/thinkpython /trunk/book
64+ rm -rf /home/downey/thinkpython2 /trunk/book
6365 plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.plastex
64- rm -rf /home/downey/thinkpython /trunk/book/.svn
66+ rm -rf /home/downey/thinkpython2 /trunk/book/.svn
6567
6668plastest :
6769 # Before running plastex, we need the current directory in PYTHONPATH
6870 # export PYTHONPATH=$PYTHONPATH:.
6971 python Filist.py test.tex > test.plastex
70- rm -rf /home/downey/thinkpython /trunk/test
72+ rm -rf /home/downey/thinkpython2 /trunk/test
7173 plastex --renderer=DocBook --theme=test --filename=test.xml test.plastex
72- rm -rf /home/downey/thinkpython /trunk/test/.svn
74+ rm -rf /home/downey/thinkpython2 /trunk/test/.svn
7375
7476xxe :
7577 ~ /Downloads/xxe-perso-4_8_0/bin/xxe book/book.xml
7678
77- OREILLY = /home/downey/oreilly/thinkpython
79+ OREILLY = /home/downey/oreilly/thinkpython2
7880
7981oreilly :
8082 rsync -a book.tex $(OREILLY )
8183 rsync -a book/ $(OREILLY )
8284 rsync -a figs/* $(OREILLY ) /figs
83- rsync -a thinkpython .pdf $(OREILLY ) /pdf
85+ rsync -a thinkpython2 .pdf $(OREILLY ) /pdf
8486
8587clean :
8688 rm -f * ~ * .aux * .log * .dvi * .idx * .ilg * .ind * .toc
0 commit comments