| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --buildsystem R |
| 5 |
|
| 6 |
override_dh_installdocs: |
| 7 |
dh_installdocs |
| 8 |
# instead of fixing MathJax use by patch (use-local-mathjax) patch files using by sed after installation |
| 9 |
# this prevents the need to adapt the patch when upstream changes the files |
| 10 |
for html in `find debian -name "*.html"` ; do \ |
| 11 |
sed -i 's#\(<script type="text/javascript" src="\)https://cdn\..*/mathjax/.*/MathJax.js\(?config=.*">\)#\1file:///usr/share/javascript/mathjax/MathJax.js\2#' $${html} ; \ |
| 12 |
done |