[med-svn] [primer3] 03/04: d/rules: use DEB_SOURCE

Andreas Tille tille at debian.org
Sat Aug 26 05:04:18 UTC 2017


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

tille pushed a commit to tag debian/2.3.7-4
in repository primer3.

commit 2af6d1e99d71fd57758bace14fdcbbb958953d7b
Author: Andreas Tille <tille at debian.org>
Date:   Sat Aug 26 06:54:25 2017 +0200

    d/rules: use DEB_SOURCE
---
 debian/changelog | 1 +
 debian/rules     | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c6d4165..b26bd39 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ primer3 (2.3.7-4) UNRELEASED; urgency=medium
   * Fix build with gcc-7
     Closes: #853621
   * Standards-Version: 4.1.0 (no changes needed)
+  * d/rules: use DEB_SOURCE
 
  -- Andreas Tille <tille at debian.org>  Sat, 26 Aug 2017 00:32:40 +0200
 
diff --git a/debian/rules b/debian/rules
index 862d507..a492311 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,9 @@
 # export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
-DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-sampledir:=$(CURDIR)/debian/$(DEBPKGNAME)-examples/usr/share/doc/$(DEBPKGNAME)/examples
+include /usr/share/dpkg/default.mk
+
+sampledir:=$(CURDIR)/debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples
 
 %:
 	dh $@ --sourcedirectory=src

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



More information about the debian-med-commit mailing list