File: rules

package info (click to toggle)
png-definitive-guide 20060430-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 8,848 kB
  • sloc: makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@

# Avoid a possible security hole caused by an external link
override_dh_install:
	dh_install
	cd $(CURDIR)/debian/png-definitive-guide/usr/share/doc/png-definitive-guide/html; \
	sed -i 's/http:\/\/pobox.com\/~newt\/greg_contact.html/contact.html/' *.html
	cp debian/contact.html \
           $(CURDIR)/debian/png-definitive-guide/usr/share/doc/png-definitive-guide/html

# Remove duplicate files
override_dh_link:
	dh_link
	jdupes -rl debian/png-definitive-guide/usr/share/doc/png-definitive-guide/html