make.sh 934 B

1234567891011121314151617181920212223242526272829303132333435
  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. name=main_sketcher
  9. doconce format html $name
  10. #cp .ptex2tex.cfg-minted .ptex2tex.cfg
  11. doconce format pdflatex $name --skip_inline_comments --latex_code_style=pyg
  12. #ptex2tex -DMINTED $name
  13. pdflatex -shell-escape $name
  14. makeindex $name
  15. pdflatex -shell-escape $name
  16. pdflatex -shell-escape $name
  17. cp $name.pdf pysketcher.pdf
  18. html=pysketcher
  19. doconce format html $name --skip_inline_comments --html_style=boostrap_bluegray --html_output=$html
  20. doconce split_html ${html}.html
  21. doconce format sphinx $name --skip_inline_comments
  22. doconce sphinx_dir copyright="H. P. Langtangen" version=0.1 theme=pyramid $name
  23. python automake_sphinx.py
  24. # Publish
  25. dest=../../pub/tutorial
  26. name=pysketcher
  27. cp ${name}.html ._${name}*.html ${name}.pdf $dest/
  28. rm -rf $dest/html
  29. cp -r sphinx-rootdir/_build/html $dest/html