[libmath-random-perl] 01/05: Use $Config{vendorarch} to get library path in debian/rules.

gregor herrmann gregoa at debian.org
Mon Aug 11 17:17:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libmath-random-perl.

commit a7347ec03d35e518dcc7301238703d303158a072
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Aug 11 19:13:30 2014 +0200

    Use $Config{vendorarch} to get library path in debian/rules.
---
 debian/rules | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 6024d92..91987e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,13 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 %:
 	dh $@
 
 override_dh_auto_install:
 	dh_auto_install
-	rm $(TMP)/usr/lib/perl5/Math/example.pl
-	rm $(TMP)/usr/lib/perl5/Math/test1.pl
-	rm $(TMP)/usr/lib/perl5/Math/test2.pl
+	$(RM) -v $(TMP)/$(ARCHLIB)/Math/example.pl
+	$(RM) -v $(TMP)/$(ARCHLIB)/Math/test1.pl
+	$(RM) -v $(TMP)/$(ARCHLIB)/Math/test2.pl

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-random-perl.git



More information about the Pkg-perl-cvs-commits mailing list