1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
# see http://pkg-perl.alioth.debian.org/debhelper.html#occasionally_useful
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
%:
dh $@
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# backup and restore test data
cp $(CURDIR)/t/db/book.db $(CURDIR)/t/db/book.db.save
dh_auto_test
mv $(CURDIR)/t/db/book.db.save $(CURDIR)/t/db/book.db
endif
override_dh_auto_install:
dh_auto_install
mv $(TMP)/usr/bin/form_generator.pl $(TMP)/usr/bin/dbic_form_generator
mv $(TMP)/usr/share/man/man1/form_generator.pl.1p $(TMP)/usr/share/man/man1/dbic_form_generator.1p
|