File: rules

package info (click to toggle)
hevea-doc 2.36-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 1,764 kB
  • sloc: makefile: 9
file content (13 lines) | stat: -rwxr-xr-x 292 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $@

BAD='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js'
GOOD='file:///usr/share/javascript/mathjax/MathJax.js'

override_dh_auto_build:
	mkdir -p mathjax-local
	for f in *.html; do \
		sed -e s@${BAD}@${GOOD}@ $${f} > mathjax-local/$${f}; \
	done