Generate doc/local.ent via configure instead of doc/yazpp.xml.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 2 Jun 2006 08:43:11 +0000 (08:43 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 2 Jun 2006 08:43:11 +0000 (08:43 +0000)
Use {HTML,TKL,MAN}_COMPILE macros for documentation.

configure.ac
doc/.cvsignore
doc/Makefile.am
doc/local.ent.in [new file with mode: 0644]
doc/yazpp.xml [new file with mode: 0644]
doc/yazpp.xml.in [deleted file]

index 0cef813..6cdcd56 100644 (file)
@@ -1,6 +1,6 @@
 dnl YAZ++ Toolkit, Index Data 1994-2006
 dnl See the file LICENSE for details.
-dnl $Id: configure.ac,v 1.5 2006-05-26 19:46:37 adam Exp $
+dnl $Id: configure.ac,v 1.6 2006-06-02 08:43:11 adam Exp $
 AC_PREREQ(2.59)
 AC_INIT([yazpp],[1.0.0],[adam@indexdata.dk])
 AC_CONFIG_SRCDIR(configure.ac)
@@ -38,7 +38,7 @@ AC_OUTPUT([
        yazpp-config
        zoom/Makefile
        doc/Makefile
-       doc/yazpp.xml
+       doc/local.ent
        doc/common/Makefile
        doc/common/tkl.xsl doc/common/html.xsl doc/common/man.xsl 
        doc/common/print.dsl doc/common/html.dsl
index 4ad41ad..7c736ea 100644 (file)
@@ -1,7 +1,6 @@
 *.log
 Makefile
 Makefile.in
-yazpp.xml
 *.html
 *.tkl
 yazpp-config.8
@@ -14,6 +13,7 @@ manpage.links
 manpage.refs
 html
 tkl.xsl
-yazhtml.dsl
-yazphp.dsl
-yazprint.dsl
+htmlhelp.hhp
+local.ent.in
+toc.hhc
+
index 8a67151..4998205 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.20 2006-05-26 19:46:37 adam Exp $
+## $Id: Makefile.am,v 1.21 2006-06-02 08:43:12 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUBDIRS = common
@@ -9,9 +9,9 @@ XMLFILES = \
  zoom.xml \
  api.xml \
  license.xml \
- yazpp.xml.in
+ yazpp.xml
 
-TOP = yazpp.xml
+TOP = $(srcdir)/yazpp.xml
 
 MANFILES = yazpp-config.8
 
@@ -36,10 +36,17 @@ doc_DATA = $(HTMLFILES)
 
 man_MANS = $(MANFILES)
 
-EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) entities.ent
+EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
+       entities.ent local.ent.in
 
 $(HTMLFILES): $(XMLFILES)
-       xsltproc common/html.xsl $(TOP)
+       $(HTML_COMPILE) $(TOP)
+
+index.tkl: $(XMLFILES) common/tkl.xsl
+       $(TKL_COMPILE) $(TOP)
+
+yazpp-config.8: yazpp-config-man.xml
+       $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
 
 yazpp.pdf: $(XMLFILES)
        if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
@@ -48,11 +55,6 @@ yazpp.pdf: $(XMLFILES)
        pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
        pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
 
-index.tkl: $(XMLFILES) common/tkl.xsl
-       xsltproc common/tkl.xsl $(TOP)
-
-yazpp-config.8: yazpp-config-man.xml
-       xsltproc common/man.xsl $(srcdir)/yazpp-config-man.xml
 
 clean-data-hook:
        rm -f [0-9]* *.bak
diff --git a/doc/local.ent.in b/doc/local.ent.in
new file mode 100644 (file)
index 0000000..5408bd5
--- /dev/null
@@ -0,0 +1,3 @@
+<!-- $Id: local.ent.in,v 1.1 2006-06-02 08:43:12 adam Exp $ -->
+<!ENTITY version "@VERSION@">
+<!ENTITY prefix "@prefix@">
diff --git a/doc/yazpp.xml b/doc/yazpp.xml
new file mode 100644 (file)
index 0000000..7e00524
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN"
+    "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd" 
+[
+     <!ENTITY % local SYSTEM "local.ent">
+     %local;
+     <!ENTITY % entities  SYSTEM "entities.ent">
+     %entities;
+     <!ENTITY % common  SYSTEM "common/common.ent">
+     %common;
+]>
+<!-- $Id: yazpp.xml,v 1.1 2006-06-02 08:43:12 adam Exp $ -->
+<book id="yazpp">
+ <bookinfo>
+  <title>YAZ++ User's Guide and Reference</title>
+  <authorgroup>
+   <author><firstname>Mike</firstname><surname>Taylor</surname></author>
+   <author><firstname>Adam</firstname><surname>Dickmeiss</surname></author>
+   </authorgroup>
+  <copyright>
+   <year>1999</year>
+   <year>2000</year>
+   <year>2001</year>
+   <year>2002</year>
+   <year>2003</year>
+   <year>2004</year>
+   <year>2005</year>
+   <year>2006</year>
+   <holder>Index Data Aps and Mike Taylor</holder>
+  </copyright>
+  <abstract>
+   <simpara>
+    <ulink url="&url.yazplusplus;">YAZ++</ulink>
+    is a set of libraries and header files that make it easier
+    to use the popular C-language
+    <ulink url="&url.yaz;">YAZ toolkit</ulink>
+    from C++, together with some utilities written using these
+    libraries.  It includes an implementation of the C++ binding for
+    ZOOM (<link linkend="zoom">ZOOM-C++</link>).
+   </simpara>
+   <simpara>
+    This manual covers version 1.0.0.
+    </simpara>
+   <simpara>
+    CVS ID: $Id: yazpp.xml,v 1.1 2006-06-02 08:43:12 adam Exp $
+   </simpara>
+   <simpara>
+    <inlinemediaobject>
+     <imageobject>
+      <imagedata fileref="common/id.png" format="PNG"/>
+     </imageobject>
+    </inlinemediaobject>
+   </simpara>
+  </abstract>
+ </bookinfo>
+ &chap-introduction;
+ &chap-installation;
+ &chap-zoom;
+ &chap-api;
+ &app-license;
+</book>
+
+<!-- Keep this Emacs mode comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-local-catalogs: nil
+sgml-namecase-general:t
+End:
+-->
+
diff --git a/doc/yazpp.xml.in b/doc/yazpp.xml.in
deleted file mode 100644 (file)
index 8b10307..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN"
-    "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd" 
-[
-     <!ENTITY % entities  SYSTEM "@srcdir@/entities.ent">
-     %entities;
-     <!ENTITY % common  SYSTEM "@srcdir@/common/common.ent">
-     %common;
-]>
-<!-- $Id: yazpp.xml.in,v 1.6 2006-05-26 19:46:37 adam Exp $ -->
-<book id="yazpp">
- <bookinfo>
-  <title>YAZ++ User's Guide and Reference</title>
-  <authorgroup>
-   <author><firstname>Mike</firstname><surname>Taylor</surname></author>
-   <author><firstname>Adam</firstname><surname>Dickmeiss</surname></author>
-   </authorgroup>
-  <copyright>
-   <year>1999</year>
-   <year>2000</year>
-   <year>2001</year>
-   <year>2002</year>
-   <year>2003</year>
-   <year>2004</year>
-   <year>2005</year>
-   <year>2006</year>
-   <holder>Index Data Aps and Mike Taylor</holder>
-  </copyright>
-  <abstract>
-   <simpara>
-    <ulink url="&url.yazplusplus;">YAZ++</ulink>
-    is a set of libraries and header files that make it easier
-    to use the popular C-language
-    <ulink url="&url.yaz;">YAZ toolkit</ulink>
-    from C++, together with some utilities written using these
-    libraries.  It includes an implementation of the C++ binding for
-    ZOOM (<link linkend="zoom">ZOOM-C++</link>).
-   </simpara>
-   <simpara>
-    This manual covers version @VERSION@.
-    </simpara>
-   <simpara>
-    CVS ID: $Id: yazpp.xml.in,v 1.6 2006-05-26 19:46:37 adam Exp $
-   </simpara>
-   <simpara>
-    <inlinemediaobject>
-     <imageobject>
-      <imagedata fileref="common/id.png" format="PNG"/>
-     </imageobject>
-    </inlinemediaobject>
-   </simpara>
-  </abstract>
- </bookinfo>
- &chap-introduction;
- &chap-installation;
- &chap-zoom;
- &chap-api;
- &app-license;
-</book>
-
-<!-- Keep this Emacs mode comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-local-catalogs: nil
-sgml-namecase-general:t
-End:
--->
-