[Pkg-javascript-commits] [acorn] 04/04: Don't parse the changelog ourself
Julien Puydt
julien.puydt at laposte.net
Wed Aug 16 07:15:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository acorn.
commit 2cd2a9d5e37773edfc62bab52378176b8314b2b3
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Wed Aug 16 09:06:41 2017 +0200
Don't parse the changelog ourself
---
debian/changelog | 1 +
debian/rules | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 7a4d119..95c1dda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ acorn (5.0.3-1) unstable; urgency=medium
* New upstream release (Closes: #857398).
* Bump standards-version to 4.0.0.
* Remove build-dep on docbook-xml since it's not used anymore.
+ * Don't parse the changelog : use dpkg's variables.
-- Julien Puydt <julien.puydt at laposte.net> Wed, 16 Aug 2017 08:58:07 +0200
diff --git a/debian/rules b/debian/rules
index 2bf8342..6bd8eb2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
-BUILD_DATE=$(shell dpkg-parsechangelog -SDate | LC_ALL=C date -u "+%d %B %Y" -f -)
+include /usr/share/dpkg/pkg-info.mk
+
MANPAGES := $(subst .xml,, $(wildcard debian/man/*.*.xml))
SOURCES = $(shell find src/ -name "*.js")
@@ -39,5 +40,5 @@ dist/bin/acorn.js: dist/index.js
$(MANPAGES):
# Create man page from DocBook XML
- docbook2x-man --string-param header-3="$(BUILD_DATE)" $@.xml
+ docbook2x-man --string-param header-3="$(SOURCE_DATE_EPOCH)" $@.xml
mv -v $(shell basename $@) $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/acorn.git
More information about the Pkg-javascript-commits
mailing list