chiark / gitweb /
Clarify that removals from testing are possible.
[developers-reference.git] / debian / rules
1 #!/usr/bin/make -f
2 # rules file for developers-reference
3
4 include /usr/share/dpkg/default.mk
5
6 DEB_DATE        := $(shell dpkg-parsechangelog 2>/dev/null | sed -n 's/^Date: *//p')
7 PUBDATE         := $(shell LC_ALL=C date --date="$(DEB_DATE)" -I)
8
9 LANGS           := $(shell dh_listpackages| sed -n -e 's/developers-reference-//p')
10
11 %:
12         dh $@
13
14 override_dh_auto_build:
15         $(MAKE) VERSION=$(DEB_VERSION) PUBDATE=$(PUBDATE) LANGS="$(LANGS)"
16
17 override_dh_compress:
18         dh_compress -X.pdf
19
20 override_dh_installdeb:
21         debian/tocsubstvars
22         dh_installdeb
23                 
24 update-l10n-files:
25         for lang in $(LANGS); do \
26             (echo "README-contrib"; \
27              echo "$$lang/*.html"; \
28              echo "$$lang/developers-reference.txt"; \
29              echo "$$lang/developers-reference.pdf") \
30             > debian/developers-reference-$$lang.docs; \
31         done
32
33 .PHONY: update-l10n-files