[libtext-bidi-perl] 01/06: debian/rules: Use variables to improve readability

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at sabily.org
Sat Sep 21 07:17:03 UTC 2013


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

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

commit c2a2cff59e5617e126797a537f74f9586117010f
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date:   Sat Sep 21 04:41:17 2013 +0200

    debian/rules: Use variables to improve readability
---
 debian/changelog |   12 ------------
 debian/rules     |    9 ++++++---
 2 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 22d2173..fd87156 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,24 +17,12 @@ libtext-bidi-perl (2.02-1) UNRELEASED; urgency=low
   - Changes says the version 2.0 interface is incompatible with older
     versions. Have you thought about alterting users via a NEWS entry and is
     your reverse dependency, xmltv-util, aware of the upcoming change?
-  - the git branches are a mess: there is an upstream/2.02 tag on the upstream
-    branch, but the upstream branch head remains at 0.03; there does not
-    appear to be a merge of the upstream branch into the master branch for
-    2.02, and there is no 2.02.orig.tar.gz on the pristine-tar branch either.
-    Try pushing all your branches, and merge upstream into master manually. In
-    general, branch handlling in git is fully automated when importing a new
-    upstream version using 'git-import-orig --uscan --pristine-tar' from the
-    git-buildpackage package.
 
   [gregoa]
-  - the pristine-tar branch doesn't contain the 2.02-1 data
   - d/changelog: please sort chronologically and cleanup obsolete intermediate
     entries
   - please add a debian/NEWS file pointing out the backward incompatibility
     (as mentioned in Changes and README)
-  - (cosmetic) using variables (as in
-    http://pkg-perl.alioth.debian.org/debhelper.html#note_on_paths)
-    makes the commands nicer to read
   - git rm -r debian/patches # empty
     (or maybe not, see below)
   - lintian:
diff --git a/debian/rules b/debian/rules
index 77c7b50..0f8b87c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,15 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
 
 override_dh_auto_install:
 	dh_auto_install
-	if [ ! -s $(CURDIR)/debian/libtext-bidi-perl/usr/lib/perl5/auto/Text/Bidi/private/private.bs ]; then \
-	  rm $(CURDIR)/debian/libtext-bidi-perl/usr/lib/perl5/auto/Text/Bidi/private/private.bs; \
+	if [ ! -s $(TMP)/usr/lib/perl5/auto/Text/Bidi/private/private.bs ]; then \
+	  rm $(TMP)/usr/lib/perl5/auto/Text/Bidi/private/private.bs; \
 	fi
-	mv $(CURDIR)/debian/libtext-bidi-perl/usr/bin/fribidi.pl $(CURDIR)/debian/libtext-bidi-perl/usr/bin/fribidi
+	mv $(TMP)/usr/bin/fribidi.pl $(TMP)/usr/bin/fribidi

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



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