[med-svn] [dnaclust] 02/04: Do not parse d/changelog

Andreas Tille tille at debian.org
Sun Sep 24 06:41:18 UTC 2017


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

tille pushed a commit to branch master
in repository dnaclust.

commit 049fdbd2db58c0ba6178155b248eae7459713ab1
Author: Andreas Tille <tille at debian.org>
Date:   Sun Sep 24 08:17:03 2017 +0200

    Do not parse d/changelog
---
 debian/changelog |  1 +
 debian/rules     | 15 ++-------------
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 60d7ea3..19b830b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ dnaclust (3-5) UNRELEASED; urgency=medium
 
   [ Andreas Tille ]
   * debhelper 10
+  * Do not parse d/changelog
 
  -- Andreas Tille <tille at debian.org>  Sun, 24 Sep 2017 08:15:30 +0200
 
diff --git a/debian/rules b/debian/rules
index a69d77c..381df6f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,19 +2,8 @@
 
 # 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))
+include /usr/share/dpkg/default.mk
 
-# alternatively to manually set those variables you can
-#  include /usr/share/cdbs/1/rules/buildvars.mk
-# and use what is set there.  Any hint whether dh might set variables in
-# a similar manner are welcome.
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
@@ -22,7 +11,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 override_dh_install:
 	dh_install
-	prename 's/\.sh//' $(CURDIR)/debian/$(DEBPKGNAME)/usr/bin/*
+	prename 's/\.sh//' $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/*
 
 get-orig-source:
 	uscan --verbose --repack

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



More information about the debian-med-commit mailing list