[libencode-arabic-perl] 07/10: use variables in d/rules
gregor herrmann
gregoa at debian.org
Wed Jul 30 18:17:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libencode-arabic-perl.
commit 5aee937930b718be859bf2dc577edcf8ec0b2cde
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Jul 30 20:11:35 2014 +0200
use variables in d/rules
Git-Dch: Ignore
---
debian/rules | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index c9cf903..8b4fe40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
#!/usr/bin/make -f
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
%:
dh $@
@@ -7,10 +10,10 @@ override_dh_auto_install:
dh_auto_install
# Remove the provided {encode,decode}.pl perl scripts and their manpages,
# since the they will be installed as examples instead:
- rm -rf debian/libencode-arabic-perl/usr/bin/
- rm -rf debian/libencode-arabic-perl/usr/share/man/man1/
+ $(RM) -rv $(TMP)/usr/bin/
+ $(RM) -rv $(TMP)/usr/share/man/man1/
override_dh_installexamples:
dh_installexamples
# Fix interpreter shebang lines:
- sed -i '1s|^#! perl|#!/usr/bin/perl|' debian/libencode-arabic-perl/usr/share/doc/libencode-arabic-perl/examples/*
+ sed -i '1s|^#! perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/libencode-arabic-perl/examples/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libencode-arabic-perl.git
More information about the Pkg-perl-cvs-commits
mailing list