File: rules

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

%:
	dh $@

override_dh_install:
	dh_install
	find $(CURDIR)/debian/doublecmd-help-*/ -name '*.html' -o -name '*.css' | \
		xargs fromdos ;
	find $(CURDIR)/debian/doublecmd-help-*/ \( -name '*.html' -o -name '*.css' \) -exec \
		sed -i -e "s/..\/..\/pixmaps\/common/images/g" '{}' \;
	find $(CURDIR)/debian/doublecmd-help-*/ -name '*.html' -exec \
		sed -i -z -e "s/<div class=\"checker\">.*valid-html40.*<\/div>//g" '{}' \;
	find $(CURDIR)/debian/doublecmd-help-*/ -name '*.png' | \
		xargs optipng ;
	find $(CURDIR)/debian/doublecmd-help-*/ -name 'READ_ME.txt' -delete