File: rules

package info (click to toggle)
doc-linux-hr 20000416
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 1,116 kB
  • ctags: 67
  • sloc: makefile: 52; sh: 7
file content (62 lines) | stat: -rwxr-xr-x 1,807 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f
# Based on Josip Rodin's work, which was based on a dh_make example.

howto = usr/share/doc/HOWTO
howto_html = $(howto)/hr-html
howto_txt = $(howto)/hr-txt
mini_howto_html = $(howto_html)/mini
mini_howto_txt = $(howto_txt)/mini

export howto howto_html howto_txt mini_howto_html mini_howto_txt

clean:
	dh_testdir
	dh_testroot
	dh_clean

build:

binary: binary-arch binary-indep

binary-arch:

binary-indep:
	dh_testdir
	dh_testroot
	dh_clean
	dh_installchangelogs
	dh_installdirs $(howto) \
	               $(howto_html) $(howto_txt) \
	               $(mini_howto_html) $(mini_howto_txt)
	dh_installdocs members.xoom.com/markovicr/*
	perl -pi -e 'while(s/(.*)\$$[({](.*?)[)}]/$$1$$ENV{$$2}/){}' \
	         -e 'y/Ʃ湾/CCSZccsz/;' \
	         -e 's/(?=[A-Z])/DJ/g;' \
	         -e 's/(?<=[A-Z])(?=[^a-z]|$$)/DJ/g;' \
	         -e 's//Dj/g;' \
	         -e 's//dj/g;' debian/tmp/usr/share/doc-base/*
	zcat ftp.linux.hr/pub/dokumentacija/KAKO/html/*.html.tar.gz \
	  | tar -C debian/tmp/$(howto_html) -ixf -
	cp -p www.linux.hr/hr.comp.linux-FAQ.html \
	      debian/tmp/$(howto_html)
	cp -p ftp.linux.hr/pub/dokumentacija/KAKO/*.txt.gz \
	      debian/tmp/$(howto_txt)
	cp -p www.linux.hr/ldphr/*-KAKO-* \
	      debian/tmp/$(howto_txt)
	cp -p ftp.linux.hr/pub/dokumentacija/KAKO/mini/html/*.html.gz \
	      debian/tmp/$(mini_howto_html)
	gunzip debian/tmp/$(mini_howto_html)/*.html.gz
	cp -p ftp.linux.hr/pub/dokumentacija/KAKO/mini/*.txt.gz \
	      debian/tmp/$(mini_howto_txt)
	cp -p www.linux.hr/ldphr/*-mini-KAKO \
	      debian/tmp/$(mini_howto_txt)
	find debian/tmp/$(howto) -type f ! -name '*.gz' ! -name '*.html' \
	  | xargs gzip -9
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: clean build binary binary-arch binary-indep