Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 PACKAGE = $(shell dh_listpackages)
4 TMP = $(CURDIR)/debian/$(PACKAGE)
5
6 %:
7 dh $@
8
9 # we want to use the system version of included modules, so
10 # we move the t/Test away and move it back afterwards
11 override_dh_auto_clean:
12 dh_auto_clean
13 [ ! -d $(CURDIR)/t/Test.save ] || mv $(CURDIR)/t/Test.save $(CURDIR)/t/Test
14
15 override_dh_auto_configure:
16 [ ! -d $(CURDIR)/t/Test ] || mv $(CURDIR)/t/Test $(CURDIR)/t/Test.save
17 dh_auto_configure
18
19 override_dh_auto_test:
20 TEST_SKIP_VERSION_CHECK=1 dh_auto_test
21
22 override_dh_installexamples:
23 dh_installexamples
24 find $(TMP)/usr/share/doc/$(PACKAGE)/examples \
25 -type f -exec sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' '{}' \;