make.sh 734 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # Run spellcheck
  3. doconce spellcheck -d .dict4spell.txt *.do.txt
  4. if [ $? -ne 0 ]; then
  5. echo "Abort due to misspellings."
  6. exit 1
  7. fi
  8. main=main_sketcher
  9. doconce format html $main
  10. cp .ptex2tex.cfg-minted .ptex2tex.cfg
  11. doconce format pdflatex $main --skip_inline_comments
  12. ptex2tex -DMINTED $main
  13. pdflatex -shell-escape $main
  14. makeindex $main
  15. pdflatex -shell-escape $main
  16. pdflatex -shell-escape $main
  17. doconce format sphinx $main --skip_inline_comments
  18. doconce sphinx_dir author="H. P. Langtangen" version=0.1 theme=pyramid $main
  19. python automake_sphinx.py
  20. dest=../../pub/tutorial
  21. cp ${main}.pdf $dest/pysketcher.pdf
  22. #cp $main.html ../../tutorial/pysketcher.html
  23. rm -rf $dest/html
  24. cp -r sphinx-rootdir/_build/html $dest/html