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

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


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

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

commit d17623dad56dd68ff2eee0f61c1440be244d2d02
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Aug 11 19:09:12 2014 +0200

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

diff --git a/debian/rules b/debian/rules
index 25f14a6..2df3911 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 %:
 	dh $@
 
@@ -10,5 +12,5 @@ override_dh_auto_install:
 	dh_auto_install
 	mv $(TMP)/usr/bin/primes.pl $(TMP)/usr/bin/primes
 	mkdir -p $(TMP)/usr/share/man/man1
-	PERL5LIB=$(TMP)/usr/lib/perl5 help2man -n 'Display all primes' --no-info --no-discard-stderr $(TMP)/usr/bin/primes | gzip -9 > $(TMP)/usr/share/man/man1/primes.1.gz
-	PERL5LIB=$(TMP)/usr/lib/perl5 help2man -n 'Print prime factors' --no-info --no-discard-stderr $(TMP)/usr/bin/factor.pl | gzip -9 > $(TMP)/usr/share/man/man1/factor.pl.1.gz
+	PERL5LIB=$(TMP)/$(ARCHLIB) help2man -n 'Display all primes' --no-info --no-discard-stderr $(TMP)/usr/bin/primes | gzip -9 > $(TMP)/usr/share/man/man1/primes.1.gz
+	PERL5LIB=$(TMP)/$(ARCHLIB) help2man -n 'Print prime factors' --no-info --no-discard-stderr $(TMP)/usr/bin/factor.pl | gzip -9 > $(TMP)/usr/share/man/man1/factor.pl.1.gz

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



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