File: rules

package info (click to toggle)
debian-policy 4.7.3.0
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,320 kB
  • sloc: xml: 7,484; makefile: 234; perl: 174; python: 50
file content (20 lines) | stat: -rwxr-xr-x 787 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
#!/usr/bin/make -f

%:
	dh $@ --with sphinxdoc

override_dh_auto_install:
	dh_auto_install
	set -ex; for langdir in debian/tmp/usr/share/doc/debian-policy/*/policy.html; do	\
		lang=$${langdir%%/policy.html};							\
		lang=$${lang##*/};								\
		pkg_lang=$$(echo $$lang | tr '[:upper:]_' '[:lower:]-');			\
		mkdir -p debian/debian-policy-$$pkg_lang/usr/share/doc/debian-policy;		\
		mv debian/tmp/usr/share/doc/debian-policy/$$lang				\
			debian/debian-policy-$$pkg_lang/usr/share/doc/debian-policy;		\
	done
	mv debian/tmp/* debian/debian-policy/
#	this file is not referenced by any HTML pages and we have no
#	idea what it does, so just delete it until further
#	investigation is possible
	rm -f debian/debian-policy/usr/share/doc/debian-policy/policy.html/_static/websupport.js