[patch] conditionnal documentation: SGML to HTML
Nirgal <[email protected]> Sat, 15 Oct 2011 16:29:30 +0000
| Newsgroups | gmane.comp.db.mdb-tools.devel |
|---|---|
| Message-ID | <[email protected]> |
--Boundary-00=_sTbmO1p92O3UCvZ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit doc/Makefile.am advertise that html/ and install.tgz are built if DOCBOOK_DSL is defined. But this was not working. Attached is a patch to fix that. I plan to commit it in a week, if there is no feed back. --Boundary-00=_sTbmO1p92O3UCvZ Content-Type: text/plain; charset="utf-8"; name="03_documentation" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="03_documentation" Description: html file generation from sgml Build install.tgz documentation when DOCBOOK_DSL is defined, as advertised by the comments. Clean up unused html/dist/man targets new clean-local target to remove tmp & html files Author: Jean-Michel Vourgère <[email protected]> Last-Update: 2011-10-15 Index: mdbtools/doc/Makefile.am =================================================================== --- mdbtools.orig/doc/Makefile.am +++ mdbtools/doc/Makefile.am @@ -1,36 +1,37 @@ -# Converting DocBook to HTML (several small files) -# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140 SHELL = /bin/sh TXT2MAN = txt2man PRODUCT = MDBTools +# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl. + dist_man_MANS = mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-schema.1 mdb-sql.1 \ mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 gmdb2.1 +if ENABLE_DOCBOOK + dist_man_MANS += install.tgz +endif DISTCLEANFILES = ${dist_man_MANS} -EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt mdb-sql.txt faq.html txt2man install.sgml - -html: install.tgz - -dist: install.tgz man -#dist: man - -# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl. - -install.tgz: $(srcdir)/install.sgml - if test -n "${DOCBOOK_DSL}"; then \ - rm -rf html && \ - mkdir html && \ - cd html && pwd && \ - openjade -d ${DOCBOOK_DSL} -t sgml ../$(srcdir)/install.sgml; \ - test -f book1.htm && \ - ln -s book1.htm index.html && cd .. && \ - if ! [ -L userguide ]; then \ - ln -s html install; \ - fi; \ - tar zcf install.tgz install/* \ - ; fi - -man: mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-sql.1 +EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt mdb-sql.txt \ + mdb-array.txt mdb-header.txt mdb-hexdump.txt mdb-parsecsv.txt mdb-prop.txt gmdb2.txt \ + faq.html install.sgml .txt.1: - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(VERSION) -s 1 $(srcdir)/$< > $@ + +# Converting DocBook to HTML (several small files) +# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140 +install.tgz: $(srcdir)/install.sgml + rm -rf html && \ + mkdir html && \ + cd html && \ + openjade -d ${DOCBOOK_DSL} -t sgml ../$(srcdir)/install.sgml; \ + test -f book1.htm && \ + ln -s book1.htm index.html && \ + cd .. && \ + if ! [ -L userguide ]; then \ + ln -s html install; \ + fi ; \ + tar zcf install.tgz install/* + +clean-local: + -rm -rf html + -rm -f install Index: mdbtools/configure.in =================================================================== --- mdbtools.orig/configure.in +++ mdbtools/configure.in @@ -181,6 +181,8 @@ AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) +AM_CONDITIONAL(ENABLE_DOCBOOK, test -n "$DOCBOOK_DSL") + dnl Checks for library functions. VL_LIB_READLINE --Boundary-00=_sTbmO1p92O3UCvZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct --Boundary-00=_sTbmO1p92O3UCvZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ mdbtools-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mdbtools-dev --Boundary-00=_sTbmO1p92O3UCvZ--