File: rules

package info (click to toggle)
getmail4 4.53.0-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,136 kB
  • sloc: python: 5,800; sh: 16; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 757 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f
#export DH_VERBOSE=1
%:
	dh $@ --with python2

override_dh_install:
	dh_install
	# remove documentation files created by setup.py
	rm -rf debian/getmail4/usr/share/doc/getmail-*

override_dh_installdocs:
	dh_installdocs
	# Check what is out there.
	-ls -l debian/getmail4/usr/share/doc/getmail4/*
	# Fix file name to be getmailrc-examples.gz (Bug#463897)
	if [ -s debian/getmail4/usr/share/doc/getmail4/configuration.txt ]; then \
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/' debian/getmail4/usr/share/doc/getmail4/configuration.txt ;\
	fi
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/g' debian/getmail4/usr/share/doc/getmail4/configuration.html

override_dh_installchangelogs:
	dh_installchangelogs docs/CHANGELOG