[Pkg-javascript-commits] [acorn] 02/03: Modify the way manpages are built (courtesy of Mattia Rizzolo)
Julien Puydt
julien.puydt at laposte.net
Wed Dec 14 16:24:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository acorn.
commit 406bc928af915af834b7e36564690a2693186839
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Wed Dec 14 07:57:56 2016 +0100
Modify the way manpages are built (courtesy of Mattia Rizzolo)
---
debian/changelog | 1 +
debian/rules | 15 +++++++--------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 8295be0..d37cf49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ acorn (4.0.3-2) unstable; urgency=medium
* Add patch to remove use of default arguments. (Closes: #847789)
* Add patch to remove use of destructuring assignmants.
+ * Modify the way manpages are built (courtesy of Mattia Rizzolo).
-- Julien Puydt <julien.puydt at laposte.net> Tue, 13 Dec 2016 17:00:41 +0100
diff --git a/debian/rules b/debian/rules
index ed2bdee..6182b97 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
-MANPAGES := $(wildcard debian/man/*.*.xml)
+MANPAGES := $(subst .xml,, $(wildcard debian/man/*.*.xml))
SOURCES = $(shell find src/ -name "*.js")
TARGETS = $(subst src, dist, $(SOURCES))
@@ -13,13 +13,7 @@ COMPILE_MODULES = compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful
override_dh_clean:
dh_clean debian/man/*.1 *.min.js
-override_dh_auto_build: dist $(TARGETS)
- # Create man page from DocBook XML
- for x in $(MANPAGES) ; do \
- docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
- mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
- done
-
+override_dh_auto_build: dist $(TARGETS) $(MANPAGES)
# I guess rollup is better than node-es6-module-transpiler...
# but we don't have rollup (yet)
sed -i dist/index.js -e's/$$.tokTypes/$$.types/g'
@@ -40,3 +34,8 @@ dist:
%.js:
$(COMPILE_MODULES) $(subst dist, src, $@) > $@
+
+$(MANPAGES):
+ # Create man page from DocBook XML
+ docbook2x-man --string-param header-3="$(BUILD_DATE)" $@.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