[med-svn] [wgs-assembler] 10/12: Use dpkg-provided DEB_SOURCE variable rather than manually parsing changelog

Afif Elghraoui afif-guest at moszumanska.debian.org
Sat Aug 8 07:38:09 UTC 2015


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

afif-guest pushed a commit to branch master
in repository wgs-assembler.

commit 2ee8c35c35e75e2b6ebca26b9542cd66fb1705b3
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Aug 8 00:22:36 2015 -0700

    Use dpkg-provided DEB_SOURCE variable rather than manually parsing changelog
---
 debian/rules | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index d89bf59..a0cd22a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@ 
@@ -17,7 +17,7 @@ override_dh_auto_build:
 
 override_dh_install:
 	dh_install
-	for pm in `grep -l '#!/usr/local/bin/' debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/* 2>/dev/null` ; do \
+	for pm in `grep -l '#!/usr/local/bin/' debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/* 2>/dev/null` ; do \
 	    sed -i 's?#!/usr/local/bin/?#!/usr/bin/?' $${pm} ; \
 	done
 
@@ -27,8 +27,8 @@ override_dh_auto_clean:
 
 override_dh_fixperms:
 	dh_fixperms
-	chmod -x debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/TIGR/*
-	chmod -x debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/caqc_help.ini
+	chmod -x debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/TIGR/*
+	chmod -x debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/caqc_help.ini
 
 get-orig-source:
 	mkdir -p ../tarballs

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/wgs-assembler.git



More information about the debian-med-commit mailing list