make.sh 1007 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # Run spellcheck
  3. python ~/hg/programs/spellcheck.py -d dictionary.txt *.do.txt
  4. if [ $? -ne 0 ]; then
  5. echo "Misspellings!" # use mydict.txt~.all~ as new dictionary.txt?
  6. exit 1
  7. fi
  8. main=wrap_sketcher
  9. doconce format html $main
  10. cp .ptex2tex.cfg-primer .ptex2tex.cfg
  11. doconce format latex $main -DPRIMER_BOOK
  12. ptex2tex $main
  13. latex $main
  14. makeindex $main
  15. latex $main
  16. latex $main
  17. dvipdf $main
  18. mv $main.pdf ${main}_primer.pdf
  19. cp .ptex2tex.cfg-minted .ptex2tex.cfg
  20. doconce format pdflatex $main
  21. ptex2tex -DMINTED $main
  22. pdflatex -shell-escape $main
  23. makeindex $main
  24. pdflatex -shell-escape $main
  25. pdflatex -shell-escape $main
  26. doconce format sphinx $main --skip_inline_comments
  27. rm -rf sphinx-rootdir
  28. doconce sphinx_dir author="H. P. Langtangen" version=0.1 theme=pyramid $main
  29. python automake-sphinx.py
  30. cp ${main}_primer.pdf ../../tutorial/pysketcher_blue.pdf
  31. cp ${main}.pdf ../../tutorial/pysketcher.pdf
  32. #cp $main.html ../../tutorial/pysketcher.html
  33. cp -r sphinx-rootdir/_build/html ../../tutorial/html