[libdevel-nytprof-perl] 01/08: Use $Config{vendorarch} in debian/rules
gregor herrmann
gregoa at debian.org
Mon Jun 2 19:50:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libdevel-nytprof-perl.
commit b4ddc2dd0d5d905ea90d28db3c9522a8ccfc0472
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Jun 2 21:19:17 2014 +0200
Use $Config{vendorarch} in debian/rules
as a preparation for the multi-arched perl 5.20.
---
debian/rules | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index 519c29a..ec4a431 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
%:
dh $@
@@ -14,17 +15,17 @@ override_dh_installexamples:
override_dh_link:
dh_link
# from libjs-jquery, via debian/links
- $(RM) -v $(TMP)/usr/lib/perl5/Devel/NYTProf/js/jquery-min.js
+ $(RM) -v $(TMP)$(ARCHLIB)/Devel/NYTProf/js/jquery-min.js
override_dh_auto_install:
dh_auto_install
# move arch:all files around
- mv -v $(TMP)/usr/lib/perl5/Devel/NYTProf/js \
+ mv -v $(TMP)$(ARCHLIB)/Devel/NYTProf/js \
$(TMP)/usr/share/perl5/Devel/NYTProf/
# remove manpage fragment
$(RM) -v $(TMP)/usr/share/man/man3/Devel::NYTProf::FileInfo.3pm
# remove MemoryProfiling.pod and generated manpage
- $(RM) -v $(TMP)/usr/lib/perl5/Devel/MemoryProfiling.pod
+ $(RM) -v $(TMP)$(ARCHLIB)/Devel/MemoryProfiling.pod
$(RM) -v $(TMP)/usr/share/man/man3/Devel::MemoryProfiling.3pm
# install below /usr/share
mv $(TMP)/usr/bin/flamegraph.pl $(TMP)/usr/share/perl5/Devel/NYTProf/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevel-nytprof-perl.git
More information about the Pkg-perl-cvs-commits
mailing list