[libdbd-mysql-perl] 01/02: debian/rules: Use $Config{vendorarch} to find perl library path
gregor herrmann
gregoa at debian.org
Mon Aug 11 16:09:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libdbd-mysql-perl.
commit c16228e1c1e79ea5dfe7868468ce10fdb69e147e
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Aug 11 18:07:04 2014 +0200
debian/rules: Use $Config{vendorarch} to find perl library path
for removing stuff from the binary package.
---
debian/rules | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index 89192f1..9cb3d00 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
PROB_FILE = mysql.mtest
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
%:
dh $@ --with perl_dbi
@@ -18,9 +19,9 @@ override_dh_auto_install:
dh_auto_install
find $(TMP)/usr -name 'dbimon*' | xargs -r rm -f
find $(TMP)/usr -name '*.pod' | xargs -r chmod 0644
- [ ! -f $(TMP)/usr/lib/perl5/DBD/mysql/INSTALL.pod ] || $(RM) -v $(TMP)/usr/lib/perl5/DBD/mysql/INSTALL.pod
- [ ! -d $(TMP)/usr/lib/perl5/Bundle/ ] || $(RM) -vrf $(TMP)/usr/lib/perl5/Bundle/
- [ ! -f $(TMP)/usr/share/man/man3/Bundle::DBD::mysql.3pm ] || $(RM) -v $(TMP)/usr/share/man/man3/Bundle::DBD::mysql.3pm
+ [ ! -f $(TMP)/$(ARCHLIB)/DBD/mysql/INSTALL.pod ] || $(RM) -v $(TMP)/$(ARCHLIB)/DBD/mysql/INSTALL.pod
+ [ ! -d $(TMP)/$(ARCHLIB)/Bundle/ ] || $(RM) -vr $(TMP)/$(ARCHLIB)/Bundle/
+ [ ! -f $(TMP)/usr/share/man/man3/Bundle::DBD::mysql.3pm ] || $(RM) -v $(TMP)/usr/share/man/man3/Bundle::DBD::mysql.3pm
[ ! -f $(TMP)/usr/share/man/man3/DBD::mysql::INSTALL.3pm ] || $(RM) -v $(TMP)/usr/share/man/man3/DBD::mysql::INSTALL.3pm
override_dh_installexamples:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-mysql-perl.git
More information about the Pkg-perl-cvs-commits
mailing list