[med-svn] [cufflinks] 05/10: Update d/rules, use variables provided by /usr/share/dpkg/default.mk
Alex Mestiashvili
malex-guest at moszumanska.debian.org
Tue Sep 5 21:59:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
malex-guest pushed a commit to branch master
in repository cufflinks.
commit e839c3e49c3040360b181346a5699359dbe02129
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date: Tue Sep 5 23:25:24 2017 +0200
Update d/rules, use variables provided by /usr/share/dpkg/default.mk
---
debian/rules | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/debian/rules b/debian/rules
index 8203625..d844e6b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,14 +1,10 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
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
+pkg := cufflinks
+mandir := $(CURDIR)/debian/$(pkg)/usr/share/man/man1
+bindir := $(CURDIR)/debian/$(pkg)/usr/bin
%:
dh $@ --with autoreconf --parallel
@@ -32,12 +28,10 @@ override_dh_installman:
cuffdiff cuffquant cuffnorm cufflinks ; do \
help2man --no-info --no-discard-stderr -h "" \
--name='component of cufflinks suite' \
- --version-string="$(version)" \
+ --version-string="$(DEB_VERSION)" \
$(bindir)/$$i > $(mandir)/$$i.1; \
done
help2man --no-info --no-discard-stderr \
--name='component of cufflinks suite' \
- --version-string="$(version)" \
+ --version-string="$(DEB_VERSION)" \
$(bindir)/gffread > $(mandir)/gffread.1; \
-
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cufflinks.git
More information about the debian-med-commit
mailing list