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
# debian/rules for mipe
# Copyright 2012 Andreas Tille <tille@debian.org>
# see debian/copyright
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PKG := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
%:
dh $@
override_dh_install:
dh_install
# remove *.pl extension and create manpages using pod2man
for i in *.pl; do \
bname=`echo $$i | sed -e 's/.pl$$//'`; \
cp -a $$i $(CURDIR)/debian/$(PKG)/usr/bin/$$bname ; \
pod2man $$i > $(CURDIR)/debian/$(PKG)/usr/share/man/man1/$${bname}.1 ; \
done
|