File: rules

package info (click to toggle)
r-cran-plumber 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,724 kB
  • sloc: javascript: 110; sh: 14; makefile: 10
file content (13 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $@ --buildsystem R

override_dh_install:
	dh_install
	for pb in `grep -Rl '/bootstrap.min.[cjs]\+s' debian/*/usr` ; do \
	    sed -i 's?https://maxcdn.bootstrapcdn.com/bootstrap/[.0-9]\+/\([cjs]\+s\)/bootstrap.min.\([cjs]\+s\)?file:///usr/share/javascript/bootstrap/\1/bootstrap.min.\2?' $${pb} ; \
	done
	for pb in `grep -Rl '/jquery-[.0-9]\+\.min.js' debian/*/usr` ; do \
	    sed -i 's?https://code.jquery.com/jquery-[.0-9]\+\.min.js?file:///usr/share/javascript/jquery/jquery.min.js?' $${pb} ; \
	done