Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [install info (using perl) 1/2] Add support for an info version of the user manual

From: David Kastrup <hidden>
Date: 2016-06-15 22:43:28

Junio C Hamano [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
David Kastrup [off-list ref] writes:
quoted
@@ -139,6 +154,18 @@ XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
 user-manual.html: user-manual.xml
 	xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
 
+git.info: user-manual.xml
+	$(RM) $@ $*.texi
+	$(DOCBOOK2X_TEXI) user-manual.xml --to-stdout | \
+	perl -ne 'if (/^\@setfilename/) {$$_="\@setfilename git.info\
[...]
Aside from possible portability issue of multi-line script, there is
another slight problem I am not sure if it is worth fixing.  If you
do not have docbook2x-texi installed, nobody notices that resulting
$*.texi was a garbage and an almost empty git.info is generated.
Good catch.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help