build.sh 462 B

1234567891011121314
  1. #!/bin/bash
  2. # set current working directory to directory of the shell script
  3. cd "$(dirname "$0")"
  4. git clone --depth 1 --branch 3.2.2 https://github.com/mathjax/MathJax.git tmp
  5. # https://github.com/mathjax/MathJax#reducing-the-size-of-the-components-directory
  6. mkdir -p ../../vendor/mathjax
  7. cp tmp/es5/tex-mml-chtml.js ../../vendor/mathjax
  8. mkdir -p ../../vendor/mathjax/fonts
  9. cp tmp/es5/output/chtml/fonts/woff-v2/*.woff ../../vendor/mathjax/fonts
  10. rm -rf tmp/