[DRE-commits] [cucumber] 02/06: replace dpkg-parsechangelog by DEB_VERSION/SOURCE_DATE_EPOCH env variables
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Oct 12 20:46:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository cucumber.
commit 393063def7b84e12aa88fcaa9296a4e1a7f27a18
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Oct 12 13:09:27 2017 +0200
replace dpkg-parsechangelog by DEB_VERSION/SOURCE_DATE_EPOCH env variables
---
debian/rules | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/debian/rules b/debian/rules
index 577ac2e..48a3596 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,19 +11,14 @@
# If you need to specify the .gemspec (eg there is more than one)
#export DH_RUBY_GEMSPEC=gem.gemspec
-last_change = $(shell dpkg-parsechangelog -S Date)
-build_epoch = $(shell date -u +"%s" --date="$(last_change)")
-
%:
dh $@ --buildsystem=ruby --with ruby
-package_version=$(shell dpkg-parsechangelog | grep Version: | awk '{print $$2}')
-
override_dh_auto_install:
dh_auto_install
rm -r debian/cucumber/usr/lib/ruby/vendor_ruby/autotest
mkdir -p debian/cucumber/usr/share/man/man1
- pod2man -n cucumber -r "cucumber $(package_version)" -c cucumber --date $(build_epoch) debian/cucumber.pod > debian/cucumber/usr/share/man/man1/cucumber.1
+ pod2man -n cucumber -r "cucumber $(DEB_VERSION)" -c cucumber --date $(SOURCE_DATE_EPOCH) debian/cucumber.pod > debian/cucumber/usr/share/man/man1/cucumber.1
override_dh_installchangelogs:
dh_installchangelogs History.md
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/cucumber.git
More information about the Pkg-ruby-extras-commits
mailing list