1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
UPSTREAM := $(DEB_VERSION_UPSTREAM)
%:
dh $@ --with phpcomposer
override_dh_auto_build:
phpab \
--output src/autoload.php \
--template debian/autoload.php.tpl \
src
override_dh_auto_test:
phpunit --bootstrap src/autoload.php
execute_before_dh_installman:
mkdir -p $(CURDIR)/debian/tmp
cd debian/phpcpd/usr/share/php && \
help2man --no-info \
--help-option=\ \
--version-string=$(UPSTREAM) \
--source="phpcpd $(UPSTREAM)" \
--include=$(CURDIR)/debian/phpcpd.1.in \
"echo -n Usage: && ../../bin/phpcpd --help|tail -n+4" \
> $(CURDIR)/debian/tmp/phpcpd.1
|