[med-svn] [kraken] 02/03: d/rules: do not read d/changelog

Andreas Tille tille at debian.org
Thu Aug 10 21:24:21 UTC 2017


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

tille pushed a commit to tag debian/0.10.5_beta-4
in repository kraken.

commit 5f7b432bbcdfec10b145bc92ef39c44c92a57949
Author: Andreas Tille <tille at debian.org>
Date:   Thu Aug 10 23:15:42 2017 +0200

    d/rules: do not read d/changelog
---
 debian/changelog |  1 +
 debian/rules     | 21 ++++++---------------
 2 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a4e731a..218a09e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ kraken (0.10.5~beta-4) UNRELEASED; urgency=medium
 
   [ Andreas Tille ]
   * debhelper 10
+  * d/rules: do not read d/changelog
 
  -- Nadiya Sitdykova  <rovenskasa at gmail.com>  Thu, 10 Aug 2017 23:13:32 +0200
 
diff --git a/debian/rules b/debian/rules
index d230454..669eed7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,30 +2,21 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-#GIT_TAG        := $(subst ~,_,$(VERSION))
+DEB_SOURCE     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
-# alternatively to manually set those variables, you can
-#  include /usr/share/dpkg/default.mk
-# and use what is set there.
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@  --sourcedirectory=src
 
 override_dh_link:
 	dh_link
-	for file in $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/kraken* ; do \
+	for file in $(CURDIR)/debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/kraken* ; do \
 	    if ! echo $${file} | grep -q '\.pm$$' ; then \
-		ln -s ../lib/$(DEBPKGNAME)/`basename $${file}` $(CURDIR)/debian/$(DEBPKGNAME)/usr/bin/`basename $${file}` ; \
+		ln -s ../lib/$(DEB_SOURCE)/`basename $${file}` $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/`basename $${file}` ; \
 	    fi \
 	done
 
 override_dh_auto_install:
-	dh_auto_install -- KRAKEN_DIR=$(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)
-	./install_kraken.sh /usr/lib/$(DEBPKGNAME) $(DEBPKGNAME)
+	dh_auto_install -- KRAKEN_DIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)
+	./install_kraken.sh /usr/lib/$(DEB_SOURCE) $(DEB_SOURCE)

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



More information about the debian-med-commit mailing list