File: rules

package info (click to toggle)
r-cran-pkgdown 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,740 kB
  • sloc: javascript: 460; makefile: 14; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 1,035 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dh-r/r-cran.mk

%:
	dh $@ --buildsystem R

override_dh_installdocs:
	dh_installdocs
	find debian -name head.html -exec sed -i \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/bootswatch/.*/bootstrap\.min\.css#file:///usr/share/javascript/bootswatch/{{.}}/bootstrap.min.css#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/.*/bootstrap\.min\.css#file:///usr/share/javascript/bootstrap/css/bootstrap.min.css#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/.*/js/bootstrap.min.js#file:///usr/share/javascript/bootstrap/js/bootstrap.min.js#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/jquery/.*/jquery.min.js#file:///usr/share/javascript/jquery/jquery.min.js#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/MathJax.js#file:///usr/share/javascript/mathjax/MathJax.js#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/mathjax/\(config/.*\.js\)#file:///usr/share/javascript/mathjax/\1#' \
		-e '/\/oss.maxcdn.com\/html5shiv\//d' \
		\{\} \;