[med-svn] [tophat] 05/10: d/rules: use DEB_SOURCE

Andreas Tille tille at debian.org
Mon Sep 4 12:03:59 UTC 2017


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

tille pushed a commit to tag debian/2.1.1+dfsg-4
in repository tophat.

commit b906c9a794216011e8a834a20b66f1b0c0a1e8c9
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jul 15 07:06:04 2017 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 93256b8..f8c588d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ tophat (2.1.1+dfsg-3) UNRELEASED; urgency=medium
   * debhelper 10 (use --no-parallel to avoid build problems)
   * Standards-Version: 4.0.0 (no changes needed)
   * Drop unneeded gbp.conf
+  * d/rules: use DEB_SOURCE
 
  -- Nadiya Sitdykova <rovenskasa at gmail.com>  Fri, 14 Jul 2017 21:15:50 -0400
 
diff --git a/debian/rules b/debian/rules
index bfd9ba8..70b6602 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,11 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
-version=$(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
-mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1
-bindir=$(CURDIR)/debian/$(pkg)/usr/bin
+
+include /usr/share/dpkg/default.mk
+
+mandir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1
+bindir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
 
 # according to dpkg-architecture(1) this should be set to support manual invocation
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
@@ -22,19 +23,19 @@ override_dh_installman:
 	mkdir -p $(mandir)
 	help2man --no-info --no-discard-stderr  -h "" \
 	    --name='tophat component converting bam directly into fastx' \
-	    --version-string="$(version)" \
+	    --version-string="$(DEB_VERSION)" \
 	         $(bindir)/bam2fastx > $(mandir)/bam2fastx.1
 	help2man --no-info --no-discard-stderr -h "-h" \
 	    --name='tophat component to convert junctions in BED format' \
-	    --version-string="$(version)" \
+	    --version-string="$(DEB_VERSION)" \
 	         $(bindir)/bed_to_juncs > $(mandir)/bed_to_juncs.1
 	help2man --no-info --no-discard-stderr -h "-h" \
 	    --name='tophat component taking NCBI seq_contig file and maps contig coords' \
-	    --version-string="$(version)" \
+	    --version-string="$(DEB_VERSION)" \
 	         $(bindir)/contig_to_chr_coords > $(mandir)/contig_to_chr_coords.1
 	help2man --no-info --no-discard-stderr \
 	    --name='TopHat maps short sequences from spliced transcripts to whole genomes' \
-	    --version-string="$(version)" \
+	    --version-string="$(DEB_VERSION)" \
 	         $(bindir)/tophat > $(mandir)/tophat.1
 
 get-orig-source:

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



More information about the debian-med-commit mailing list