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

gregoa pushed a commit to branch master
in repository libtext-bidi-perl.

commit 28b071d4503caa7146adff5dbb259984fcb7d915
Author: gregor herrmann <gre...@debian.org>
Date:   Mon Jun 2 23:00:47 2014 +0200

    ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
    
    Use $Config{vendorarch} in debian/rules
---
 debian/rules | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 70ae3ca..7a317dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@
 
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
 
 # don't run resource intensive test t/ucd.t on slow arches
 DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
@@ -20,8 +21,10 @@ endif
 
 override_dh_auto_install:
        dh_auto_install
-       if [ ! -s $(TMP)/usr/lib/perl5/auto/Text/Bidi/private/private.bs ]; 
then \
-         rm $(TMP)/usr/lib/perl5/auto/Text/Bidi/private/private.bs; \
+       # remove if it exists but doesn't not a size > 0
+       if [ -e $(TMP)$(ARCHLIB)/auto/Text/Bidi/private/private.bs -a \
+         ! -s $(TMP)$(ARCHLIB)/auto/Text/Bidi/private/private.bs ]; then \
+           rm $(TMP)$(ARCHLIB)/auto/Text/Bidi/private/private.bs; \
        fi
        # Remove fribidi.pl script, installed as an example instead:
        rm -rf $(TMP)/usr/bin

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to