File: rules

package info (click to toggle)
jquery-colorbox 1.6.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,448 kB
  • sloc: javascript: 1,204; makefile: 17
file content (28 lines) | stat: -rwxr-xr-x 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
#

%:
	dh $@

override_dh_auto_install:
	slimit -m \
		jquery.colorbox.js \
		> \
		debian/libjs-jquery-colorbox/usr/share/javascript/jquery-colorbox/jquery.colorbox-min.js

override_dh_installexamples:
	dh_installexamples

	find debian/libjs-jquery-colorbox/usr/share/doc/libjs-jquery-colorbox/examples \
		-name "*.html" \
		-type f \
		-exec sed \
		-i 's@script src=".*jquery.min.js"@script src="/usr/share/javascript/jquery/jquery.min.js"@g;s@script src="../jquery.colorbox.js"@script src="/usr/share/javascript/jquery-colorbox/jquery.colorbox.js"@g' \
		'{}' \;

override_dh_installchangelogs:
	dh_installchangelogs README.md