File: rules

package info (click to toggle)
apt-listdifferences 1.20190206
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 160 kB
  • sloc: python: 118; sh: 18; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DH_VERBOSE=1

%:
	dh $@ --with python3

override_dh_auto_build:
	gunzip < /usr/share/man/man1/colordiff.1.gz > colordiff-git.1
	patch /usr/bin/colordiff colordiff-git.patch -o colordiff-git
	patch /usr/share/doc/colordiff/examples/colordiffrc-gitdiff colordiffrc.patch\
	    -o colordiffrc

override_dh_gencontrol:
	dh_gencontrol -- -Vbuilt:Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W colordiff)"

override_dh_clean:
	dh_clean
	debconf-updatepo