]> sourceware.org Git - newlib-cygwin.git/commitdiff
winsup/doc: Create info pages from cygwin documentation
authorJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 11 Mar 2015 13:50:51 +0000 (13:50 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 23 Jun 2015 11:05:29 +0000 (12:05 +0100)
v2:
Updated to use docbook2x-texi not docbook2texi, since source is now docbook XML.
Tweak DocBook XML so info directory entry has a description.

v3:
Use a custom charmap to handle &reg;

v4:
Proper build avoidance
texinfo node references may not contain ':', so provide alternate text for a few
xref targets

2015-06-22  Jon Turney  <jon.turney@dronecode.org.uk>

* Makefile.in (install-info, cygwin-ug-net.info)
(cygwin-api.info): Add.
* cygwin-ug-net.xml: Add texinfo-node.
* cygwin-api.xml: Ditto.
* ntsec.xml (db_home): Add texinfo-node for titles containing a
':' which are the targets of an xref.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
winsup/doc/ChangeLog
winsup/doc/Makefile.in
winsup/doc/cygwin-api.xml
winsup/doc/cygwin-ug-net.xml
winsup/doc/ntsec.xml

index 23bd06c423bf7fb311dff747389b661563d3559b..0a23870faa8be3aa686becd7fe93a7a92b189062 100644 (file)
@@ -1,3 +1,12 @@
+2015-06-22  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * Makefile.in (install-info, cygwin-ug-net.info)
+       (cygwin-api.info): Add.
+       * cygwin-ug-net.xml: Add texinfo-node.
+       * cygwin-api.xml: Ditto.
+       * ntsec.xml (db_home): Add texinfo-node for titles containing a
+       ':' which are the targets of an xref.
+
 2015-06-20  Corinna Vinschen  <corinna@vinschen.de>
 
        * new-features.xml (ov-new2.1): Add alterante signal stack info.
index 0205e67f936917ae1af46459e1caf36bd7cec473..9f6774b7d541500aca4b78650d5a767a76b69f7e 100644 (file)
@@ -19,6 +19,7 @@ htmldir = @htmldir@
 mandir = @mandir@
 man1dir = $(mandir)/man1
 man3dir = $(mandir)/man3
+infodir:=@infodir@
 
 override INSTALL:=@INSTALL@
 override INSTALL_DATA:=@INSTALL_DATA@
@@ -29,6 +30,7 @@ CC:=@CC@
 CC_FOR_TARGET:=@CC@
 
 XMLTO:=xmlto --skip-validation --with-dblatex
+DOCBOOK2XTEXI:=docbook2x-texi --xinclude --info --utf8trans-map=charmap
 
 include $(srcdir)/../Makefile.common
 -include Makefile.dep
@@ -40,7 +42,8 @@ FAQ_SOURCES:= $(wildcard $(srcdir)/faq*.xml)
 .html.body:
        $(srcdir)/bodysnatcher.pl $<
 
-.PHONY: all clean install install-all install-pdf install-html install-man
+.PHONY: all clean install install-all install-pdf install-html install-man \
+       info install-info
 
 all: Makefile Makefile.dep \
        cygwin-ug-net/cygwin-ug-net.html \
@@ -50,7 +53,8 @@ all: Makefile Makefile.dep \
        cygwin-ug-net/cygwin-ug-net.pdf \
        cygwin-api/cygwin-api.pdf \
        utils2man.stamp \
-       api2man.stamp
+       api2man.stamp \
+       cygwin-ug-net.info cygwin-api.info
 
 Makefile: $(srcdir)/Makefile.in
        /bin/sh ./config.status
@@ -61,10 +65,11 @@ clean:
        rm -Rf cygwin-api cygwin-ug cygwin-ug-net faq
        rm -f *.1 utils2man.stamp
        rm -f *.3 api2man.stamp
+       rm -f *.info* charmap
 
 install: install-all
 
-install-all: install-pdf install-html install-man
+install-all: install-pdf install-html install-man install-info
 
 install-pdf: cygwin-ug-net/cygwin-ug-net.pdf cygwin-api/cygwin-api.pdf
        @$(MKDIRP) $(DESTDIR)$(docdir)
@@ -84,6 +89,10 @@ install-man: utils2man.stamp api2man.stamp
        @$(MKDIRP) $(DESTDIR)$(man3dir)
        $(INSTALL_DATA) *.3 $(DESTDIR)$(man3dir)
 
+install-info: cygwin-ug-net.info cygwin-api.info
+       $(MKDIRP) $(DESTDIR)$(infodir)
+       $(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)
+
 cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : $(cygwin-ug-net_SOURCES) html.xsl
        -$(XMLTO) html-nochunks -m $(srcdir)/html.xsl $<
        -@$(MKDIRP) cygwin-ug-net
@@ -101,6 +110,9 @@ utils2man.stamp: $(cygwin-ug-net_SOURCES) man.xsl
        $(XMLTO) man -m ${srcdir}/man.xsl $<
        @touch $@
 
+cygwin-ug-net.info: $(cygwin-ug-net_SOURCES) charmap
+       -$(DOCBOOK2XTEXI) $(srcdir)/cygwin-ug-net.xml --string-param output-file=cygwin-ug-net
+
 cygwin-api/cygwin-api.html : $(cygwin-api_SOURCES) html.xsl
        -$(XMLTO) html -o cygwin-api/ -m $(srcdir)/html.xsl $<
 
@@ -111,6 +123,14 @@ api2man.stamp: $(cygwin-api_SOURCES) man.xsl
        $(XMLTO) man -m ${srcdir}/man.xsl $<
        @touch $@
 
+cygwin-api.info: $(cygwin-api_SOURCES) charmap
+       -$(DOCBOOK2XTEXI) $(srcdir)/cygwin-api.xml --string-param output-file=cygwin-api
+
+# this generates a custom charmap for docbook2x-texi which has a mapping for &reg;
+charmap:
+       cp /usr/share/docbook2X/charmaps/texi.charmap charmap
+       echo "ae (R)" >>charmap
+
 faq/faq.html : $(FAQ_SOURCES)
        -$(XMLTO) html -o faq -m $(srcdir)/html.xsl $(srcdir)/faq.xml
        -sed -i 's;<a name="id[mp][0-9]*"></a>;;g' faq/faq.html
index 7b831d9f42d04d7ade9f31b1f7efd57e36f11e53..267c2cb717aa81b620d584df31c9e9399ad96b5a 100644 (file)
@@ -6,6 +6,9 @@
 
   <bookinfo>
     <title>Cygwin API Reference</title>
+    <abstract role="texinfo-node">
+      <para>Cygwin API Reference</para>
+    </abstract>
       <xi:include href="legal.xml"/>
   </bookinfo>
 
index f8b40e67b9e075ce41e8edd10a5bbed00572a367..b6a9eef9708a419692fd9459703bfcb20ff1227c 100644 (file)
@@ -5,6 +5,9 @@
 <book id="cygwin-ug-net" xmlns:xi="http://www.w3.org/2001/XInclude">
   <bookinfo>
     <title>Cygwin User's Guide</title>
+    <abstract role="texinfo-node">
+      <para>Cygwin User's Guide</para>
+    </abstract>
                <xi:include href="legal.xml"/>
   </bookinfo>
 
index d98286715bd6f9503d38b8a23c6482398260bef0..ae0a1195ae3d275d612ff51a3cd4911a9b699eb1 100644 (file)
@@ -1431,7 +1431,11 @@ following sections explain the settings in detail.
 
 </sect4>
 
-<sect4 id="ntsec-mapping-nsswitch-home"><title id="ntsec-mapping-nsswitch-home.title">The <literal>db_home:</literal> setting</title>
+<sect4 id="ntsec-mapping-nsswitch-home">
+  <sectioninfo>
+    <title role="texinfo-node">The <literal>db_home</literal> setting</title>
+  </sectioninfo>
+    <title id="ntsec-mapping-nsswitch-home.title">The <literal>db_home:</literal> setting</title>
 
 <para>
 The <literal>db_home:</literal> setting defines how Cygwin fetches the user's
@@ -1518,7 +1522,11 @@ So by default, Cygwin just sets the home dir to
 
 </sect4>
 
-<sect4 id="ntsec-mapping-nsswitch-shell"><title id="ntsec-mapping-nsswitch-shell.title">The <literal>db_shell:</literal> setting</title>
+<sect4 id="ntsec-mapping-nsswitch-shell">
+  <sectioninfo>
+    <title role="texinfo-node">The <literal>db_shell</literal> setting</title>
+  </sectioninfo>
+  <title id="ntsec-mapping-nsswitch-shell.title">The <literal>db_shell:</literal> setting</title>
 
 <para>
 The <literal>db_shell:</literal> setting defines how Cygwin fetches the user's
@@ -1593,7 +1601,11 @@ As for <literal>db_home:</literal>, the default setting for
 
 </sect4>
 
-<sect4 id="ntsec-mapping-nsswitch-gecos"><title id="ntsec-mapping-nsswitch-gecos.title">The <literal>db_gecos:</literal> setting</title>
+<sect4 id="ntsec-mapping-nsswitch-gecos">
+  <sectioninfo>
+    <title role="texinfo-node">The <literal>db_gecos</literal> setting</title>
+  </sectioninfo>
+  <title id="ntsec-mapping-nsswitch-gecos.title">The <literal>db_gecos:</literal> setting</title>
 
 <para>
 The <literal>db_gecos:</literal> setting defines how to fetch additional
This page took 0.042315 seconds and 5 git commands to generate.