Commit a1939730 authored by panne's avatar panne

[project @ 2004-08-26 20:08:39 by panne]

SGML is dead, long live DocBook XML!

Note: The BuildRequires tags in the spec files are still incomplete
and the documentation about the DocBook tools needs to be updated,
too. Stay tuned...
parent bb88e732
......@@ -287,14 +287,14 @@ ifneq "$(DOCBOOK_CATALOG)" ""
@for i in $(BIN_DIST_DIRS); do \
if test -d "$$i"; then \
$(MAKE) -C $$i $(MFLAGS) $(BINDIST_DOC_WAYS); \
echo $(MAKE) -C $$i $(MFLAGS) install-docs SGMLDocWays="$(BINDIST_DOC_WAYS)" XMLDocWays="$(BINDIST_DOC_WAYS)" \
echo $(MAKE) -C $$i $(MFLAGS) install-docs XMLDocWays="$(BINDIST_DOC_WAYS)" \
prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
libdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
libexecdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
$(MAKE) -C $$i $(MFLAGS) install-docs SGMLDocWays="$(BINDIST_DOC_WAYS)" XMLDocWays="$(BINDIST_DOC_WAYS)" \
$(MAKE) -C $$i $(MFLAGS) install-docs XMLDocWays="$(BINDIST_DOC_WAYS)" \
prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
......
......@@ -954,55 +954,6 @@ fi
])# FP_PROG_FO_PROCESSOR
dnl ** Check which CATALOG file we have to use with DocBook SGML.
dnl
dnl FPTOOLS_DOCBOOK_CATALOG(VARIABLE, JADE, STYLESHEET, CATALOGS-TO-CHECK-FOR)
dnl
dnl If any of the catalogs given in CATALOGS-TO-CHECK-FOR works on this
dnl platform, let VARIABLE refer to this catalog; otherwise, VARIABLE
dnl is set to "no". JADE is the jade executable and STYLESHEET
dnl a DocBook style sheet.
dnl
AC_DEFUN(FPTOOLS_DOCBOOK_CATALOG,
[AC_CACHE_CHECK([for DocBook CATALOG], fptools_cv_sgml_catalog,
[
cat > conftest.sgml << EOF
<!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<Article>
<ArtHeader>
<Title>Test</Title>
<Author><OtherName>Test</OtherName></Author>
<Address>Test</Address>
<PubDate>Test</PubDate>
</ArtHeader>
<Sect1><Title>Test</Title>
<Para>
Test.
</Para>
</Sect1>
</Article>
EOF
fptools_cv_sgml_catalog=no
if test -z "$SGML_CATALOG_FILES" ; then
for fptools_catalog in $4; do
ac_try="$2 -t rtf -d $3#print -c $fptools_catalog conftest.sgml"
if AC_TRY_EVAL(ac_try); then
fptools_cv_sgml_catalog=[$]fptools_catalog
break
fi
done
else
# If the env var SGML_CATALOG_FILES is defined, assume things are cool.
fptools_cv_sgml_catalog="yes"
fi
])
rm -rf conftest*
if test $fptools_cv_sgml_catalog != "no"; then
$1=$fptools_cv_sgml_catalog
fi
])
# FP_CHECK_WIN32
# --------------
# If Windows is the target platform (e.g. MinGW/MSYS or Cygwin with
......
......@@ -859,35 +859,6 @@ FP_CHECK_DOCBOOK_DTD
FP_DIR_DOCBOOK_XSL([/usr/share/xml/docbook/stylesheet/nwalsh/current /usr/share/sgml/docbook/docbook-xsl-stylesheets* /usr/share/sgml/docbook/xsl-stylesheets* /opt/kde?/share/apps/ksgmltools2/docbook/xsl /usr/share/docbook-xsl /usr/share/sgml/docbkxsl])
FP_PROG_FO_PROCESSOR
dnl ** check for jade/openjade & determine a working catalog
AC_PATH_PROGS(JadeCmd,openjade jade,jade)
FPTOOLS_DOCBOOK_CATALOG(Catalog, $JadeCmd, docs/fptools-both.dsl,
/etc/sgml/catalog /etc/sgml.catalog /usr/share/sgml/CATALOG.docbkdsl /usr/local/share/sgml/catalog glafp-utils/docbook/CATALOG*)
if test -z "$Catalog"; then
AC_MSG_RESULT([Warning: You will not be able to build the documentation.])
fi
case $Catalog in
yes) # assume it is provided by other means (e.g., SGML_CATALOG_FILES env var).
Catalog=
;;
glafp*)
case $HostOS_CPP in
mingw32)
if test "${OSTYPE}" == "msys"
then
Catalog=$hardtop/$Catalog
else
Catalog=`cygpath -w $hardtop/$Catalog`
fi
;;
*) Catalog=$hardtop/$Catalog
;;
esac
;;
esac
AC_SUBST(Catalog)
dnl ** check for ghc-pkg command
changequote(, )dnl
ghc_pkg_guess=`echo $WithGhc | sed 's@ghc\([^/\\]*\)$@ghc-pkg\1@'`
......
......@@ -3345,9 +3345,8 @@ directive.
<indexterm><primary>DocBook, pre-supposed</primary></indexterm>
</term>
<listitem>
<para>Much of our documentation is written in SGML, using
the DocBook DTD. Instructions on installing and
configuring the DocBook tools are below.</para>
<para>Much of our documentation is written in DocBook XML, instructions
on installing and configuring the DocBook tools are below.</para>
</listitem>
</varlistentry>
......@@ -3548,11 +3547,11 @@ $ make install</screen>
<para>Because there are many different formats that the DocBook
documentation can be generated in, you have to select which ones
you want by setting the <literal>SGMLDocWays</literal> variable
you want by setting the <literal>XMLDocWays</literal> variable
to a list of them. For example, in
<filename>build.mk</filename> you might have a line:</para>
<screen>SGMLDocWays = html ps</screen>
<screen>XMLDocWays = html ps</screen>
<para>This will cause the documentation to be built in the requested
formats as part of the main build (the default is not to build
......@@ -3572,9 +3571,9 @@ $ make install</screen>
documentation, which goes into
<literal>$(datadir)/html</literal>, to keep things tidy.</para>
<para>Note that unless you set <literal>$(SGMLDocWays)</literal>
<para>Note that unless you set <literal>$(XMLDocWays)</literal>
to a list of formats, the <literal>install-docs</literal> target
won't do anything for SGML documentation.</para>
won't do anything for DocBook XML documentation.</para>
</sect2>
</sect1>
......
......@@ -61,7 +61,7 @@
<varlistentry>
<term>Comments</term>
<listitem>
<para>Comments in SGML look like this: <sgmltag
<para>Comments in XML look like this: <sgmltag
class="sgmlcomment">This is a comment</sgmltag>.</para>
</listitem>
</varlistentry>
......@@ -175,7 +175,7 @@
<sect1 id="docbook-tables">
<title>Tables</title>
<para>Tables are quite complicated to write in SGML (as in HTML,
<para>Tables are quite complicated to write in DocBook XML (as in HTML,
there are lots of fiddly tags), so here's an example you can
cannibalise. In the spirit of the LaTeX short introduction I don't
repeat all the markup verbatim; you have to look at the source for
......
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % html "IGNORE">
<![%html;[
<!ENTITY % print "IGNORE">
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
]]>
<!ENTITY % print "INCLUDE">
<![%print;[
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
]]>
]>
<!-- This is (or was) the standard Cygnus DocBook tools stylesheet
Options added:
%section-autolabel%: true
%paper-type%: A4
-->
<style-sheet>
<style-specification id="print" use="docbook">
<style-specification-body>
;; ====================
;; customize the print stylesheet
;; ====================
;; make funcsynopsis look pretty
(define %funcsynopsis-decoration%
;; Decorate elements of a FuncSynopsis?
#t)
;; use graphics in admonitions, and have their path be "."
;; NO: we are not yet ready to use gifs in TeX and so forth
(define %admon-graphics-path%
"./")
(define %admon-graphics%
#f)
;; this is necessary because right now jadetex does not understand
;; symbolic entities, whereas things work well with numeric entities.
(declare-characteristic preserve-sdata?
"UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
#f)
(define %two-side% #t)
(define %section-autolabel%
;; Are sections enumerated?
#t)
;; (define %title-font-family%
;; ;; The font family used in titles
;; "Ariel")
(define %visual-acuity%
;; General measure of document text size
;; "presbyopic"
;; "large-type"
"normal")
(define %generate-set-toc% #t)
(define %generate-part-toc% #t)
;; (define %block-start-indent% 10pt)
(define %graphic-default-extension% "eps")
(define %paper-type%
;; Name of paper type
"A4")
</style-specification-body>
</style-specification>
<!--
;; ====================
;; customize the html stylesheet
;; ====================
-->
<style-specification id="html" use="docbook">
<style-specification-body>
;; this is necessary because right now jadetex does not understand
;; symbolic entities, whereas things work well with numeric entities.
(declare-characteristic preserve-sdata?
"UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
#f)
;; put the legal notice in a separate file
(define %generate-legalnotice-link%
#t)
;; use graphics in admonitions, and have their path be "stylesheet-images"
;; NO: they do not yet look very good
(define %admon-graphics-path%
"./stylesheet-images/")
(define %admon-graphics%
#f)
;; make funcsynopsis look pretty
(define %funcsynopsis-decoration%
;; Decorate elements of a FuncSynopsis?
#t)
(define %html-ext% ".html")
(define %body-attr%
;; What attributes should be hung off of BODY?
'())
;; (list
;; (list "BGCOLOR" "#FFFFFF")
;; (list "TEXT" "#000000")))
(define %generate-article-toc%
;; Should a Table of Contents be produced for Articles?
;; If true, a Table of Contents will be generated for each 'Article'.
#t)
(define %generate-part-toc% #t)
(define %shade-verbatim%
#t)
(define %use-id-as-filename%
;; Use ID attributes as name for component HTML files?
#t)
(define %graphic-default-extension% "gif")
(define %section-autolabel% #t)
;; Uncomment the setting below if you want .html output as one
;; big page. [ Notice that 'jade' dumps the output on stdout
;; rather than on honour the -o option...at least my copy does.]
;;
;;(define nochunks #t)
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="docbook.dsl">
</style-sheet>
......@@ -23,8 +23,8 @@ In a binary distribution, pre-formatted documentation can be found in
the html and ps directories. Pre-formatted HTML documentation is also
available on the GHC web page.
In a source distribution, the unformatted (SGML) documentation is in
the following places:
In a source distribution, the unformatted (DocBook XML) documentation
is in the following places:
* fptools/ghc/docs/users_guide Users' Guide.
* fptools/hslibs/doc/hslibs Library documentation.
......
......@@ -5,7 +5,7 @@ The recipe below is correct in theory, but unfortunately some bits
don't work in practice. These are noted below.
0. Build a stage 1 tree.
1. Set "SGMLDocWays=html pdf" in stage 2's build.mk.
1. Set "XMLDocWays=html pdf" in stage 2's build.mk.
2. Build stage 2.
3. Convert ANNOUNCE and LICENSE (if it has changed) to RTF (use Word),
and put them in the WindowsInstaller directory.
......
......@@ -22,7 +22,7 @@ Packager: Sven Panne <sven.panne@aedion.de>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
Requires: gmp, readline
BuildRequires: alex >= 2.0, happy >= 1.14, ghc >= 5, haddock, docbk31, jade, jadetex, dvips, gmp, readline-devel
BuildRequires: alex >= 2.0, happy >= 1.14, ghc >= 5, haddock, docbk31, gmp, readline-devel
Provides: haskell
Summary: The Glasgow Haskell Compiler
......
......@@ -11,7 +11,7 @@ include $(TOP)/mk/boilerplate.mk
# We need to write mkdependC first (in that order), to be sure that
# make depend will succeed in all the other directories.
SUBDIRS = mkdependC mkdirhier runstdtest docbook
SUBDIRS = mkdependC mkdirhier runstdtest
ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
SUBDIRS += lndir
endif
......
CATALOG /usr/local/share/sgml/iso8879/catalog
CATALOG /usr/local/share/sgml/docbook/catalog
CATALOG /usr/local/share/sgml/docbook/dsssl/modular/catalog
CATALOG /usr/local/share/sgml/jade/catalog
DTDDECL "-//OASIS//DTD DocBook V3.1//EN" "/usr/share/sgml/docbk31/docbook.dcl"
PUBLIC "-//OASIS//DTD DocBook V3.1//EN" /usr/share/sgml/OASIS/dtd/DocBook_V3.1
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" /usr/share/sgml/USA-DOD/dtd/Table_Model_951010
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V3.1//EN" /usr/share/sgml/OASIS/elements/DocBook_Information_Pool_V3.1
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V3.1//EN" /usr/share/sgml/OASIS/elements/DocBook_Document_Hierarchy_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Additional_General_Entities_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Notations V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Notations_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Character_Entities_V3.1
CATALOG "/var/lib/sgml/CATALOG.iso_ent"
PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" /usr/share/sgml/James_Clark/dtd/DSSSL_Style_Sheet
PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl
PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" /usr/share/sgml/docbook/dsssl-stylesheets-1.77/html/docbook.dsl
PUBLIC "ISO/IEC 10179:1996//DTD DSSSL Architecture//EN" /usr/share/sgml/jade_dsl/dsssl.dtd
DTDDECL "-//OASIS//DTD DocBook V3.1//EN" "/usr/share/sgml/docbk31/docbook.dcl"
PUBLIC "-//OASIS//DTD DocBook V3.1//EN" /usr/share/sgml/OASIS/dtd/DocBook_V3.1
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" /usr/share/sgml/USA-DOD/dtd/Table_Model_951010
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V3.1//EN" /usr/share/sgml/OASIS/elements/DocBook_Information_Pool_V3.1
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V3.1//EN" /usr/share/sgml/OASIS/elements/DocBook_Document_Hierarchy_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Additional_General_Entities_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Notations V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Notations_V3.1
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V3.1//EN" /usr/share/sgml/OASIS/entities/DocBook_Character_Entities_V3.1
CATALOG "/var/lib/sgml/CATALOG.iso_ent"
PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" /usr/share/sgml/James_Clark/dtd/DSSSL_Style_Sheet
PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl
PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" /usr/share/sgml/docbook/dsssl-stylesheets-1.77/html/docbook.dsl
PUBLIC "ISO/IEC 10179:1996//DTD DSSSL Architecture//EN" /usr/share/sgml/ISO_IEC_10179:1996/dtd/DSSSL_Architecture
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" /usr/lib/sgml/ISOamsa
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" /usr/lib/sgml/ISOamsb
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" /usr/lib/sgml/ISOamsc
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" /usr/lib/sgml/ISOamsn
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" /usr/lib/sgml/ISOamso
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" /usr/lib/sgml/ISOamsr
PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" /usr/lib/sgml/ISObox
PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" /usr/lib/sgml/ISOcyr1
PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" /usr/lib/sgml/ISOcyr2
PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" /usr/lib/sgml/ISOdia
PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" /usr/lib/sgml/ISOgrk1
PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" /usr/lib/sgml/ISOgrk2
PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" /usr/lib/sgml/ISOgrk3
PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" /usr/lib/sgml/ISOgrk4
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" /usr/lib/sgml/ISOlat1
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" /usr/lib/sgml/ISOlat2
PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" /usr/lib/sgml/ISOnum
PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" /usr/lib/sgml/ISOpub
PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" /usr/lib/sgml/ISOtech
PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl
PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl
CATALOG /usr/lib/sgml/dsssl.cat
CATALOG /usr/lib/sgml/docbook.cat
CATALOG /usr/lib/sgml/nwalsh-modular.cat
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" /usr/local/lib/sgml/ISOamsa
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" /usr/local/lib/sgml/ISOamsb
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" /usr/local/lib/sgml/ISOamsc
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" /usr/local/lib/sgml/ISOamsn
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" /usr/local/lib/sgml/ISOamso
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" /usr/local/lib/sgml/ISOamsr
PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" /usr/local/lib/sgml/ISObox
PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" /usr/local/lib/sgml/ISOcyr1
PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" /usr/local/lib/sgml/ISOcyr2
PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" /usr/local/lib/sgml/ISOdia
PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" /usr/local/lib/sgml/ISOgrk1
PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" /usr/local/lib/sgml/ISOgrk2
PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" /usr/local/lib/sgml/ISOgrk3
PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" /usr/local/lib/sgml/ISOgrk4
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" /usr/local/lib/sgml/ISOlat1
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" /usr/local/lib/sgml/ISOlat2
PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" /usr/local/lib/sgml/ISOnum
PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" /usr/local/lib/sgml/ISOpub
PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" /usr/local/lib/sgml/ISOtech
CATALOG /usr/local/lib/sgml/stylesheets/docbook/catalog
CATALOG /usr/local/lib/sgml/docbook.cat
CATALOG /usr/local/lib/sgml/catalog
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" /docbook/ISOamsa
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" /docbook/ISOamsb
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" /docbook/ISOamsc
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" /docbook/ISOamsn
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" /docbook/ISOamso
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" /docbook/ISOamsr
PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" /docbook/ISObox
PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" /docbook/ISOcyr1
PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" /docbook/ISOcyr2
PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" /docbook/ISOdia
PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" /docbook/ISOgrk1
PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" /docbook/ISOgrk2
PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" /docbook/ISOgrk3
PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" /docbook/ISOgrk4
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" /docbook/ISOlat1
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" /docbook/ISOlat2
PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" /docbook/ISOnum
PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" /docbook/ISOpub
PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" /docbook/ISOtech
CATALOG /docbook/stylesheets/docbook/catalog
CATALOG /docbook/docbook.cat
CATALOG /jade/catalog
The db* files are copyright Cygnus Solutions and the GHC Team, and
distributed under the GNU General Public License. They're derived from the
Cygnus DocBook tools scripts.
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.5 2000/11/21 10:00:44 simonmar Exp $
TOP=..
include $(TOP)/mk/boilerplate.mk
SUBDIRS = db2dvi.dir db2html.dir db2pdf.dir db2ps.dir db2rtf.dir
include $(TOP)/mk/target.mk
TOP=../..
include $(TOP)/mk/boilerplate.mk
SCRIPT_PROG=../db2dvi
SCRIPT_OBJS=db2dvi.sh
SCRIPT_SUBST_VARS=JADE DOCBOOK_CATALOG
INTERP=$(SHELL)
CLEAN_FILES += $(SCRIPT_PROG)
DESTDIR=$(INSTSCRIPTDIR)
include $(TOP)/mk/target.mk
if [ ! -f "$DOCBOOK_CATALOG" ] && [ ! -f "$SGML_CATALOG_FILES" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
if [ -f "$DOCBOOK_CATALOG" ] ; then
CATALOG_OPTION="-c $DOCBOOK_CATALOG"
fi
# Dave Mason's option to specify a different stylesheet
case $1 in
-d) DB_STYLESHEET=$2
shift 2
;;
esac
echo "Using stylesheet: \"${DB_STYLESHEET}\""
if [ $# -gt 2 ]
then
echo "Usage: `basename $0` [filename.sgml]" >&2
exit 1
fi
if [ $# -eq 1 ]
then
if [ ! -r $1 ]
then
echo Cannot read \"$1\". Exiting. >&2
exit 1
fi
if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1
then
output="`echo $1 | sed 's,\.sgml$,.dvi,;s,\.sgm$,.dvi,'`"
fi
fi
echo OUTPUT FILE NAME IS $output
TMPFN=`echo $1 | sed 's/\.sgml//'`
$JADE -t tex -d ${DB_STYLESHEET}\#print -o ${TMPFN}.tex $CATALOG_OPTION $1
jadetex ${TMPFN}.tex
# if there are unresolved references, re-run jadetex, twice
if egrep '^LaTeX Warning: There were undefined references.$' ${TMPFN}.log >/dev/null 2>&1
then
jadetex ${TMPFN}.tex
jadetex ${TMPFN}.tex
fi
exit 0
TOP=../..
include $(TOP)/mk/boilerplate.mk
SCRIPT_PROG=../db2html
SCRIPT_OBJS=db2html.sh
SCRIPT_SUBST_VARS=JADE DOCBOOK_CATALOG HTML_DIR
INTERP=$(SHELL)
HTML_DIR=$(FPTOOLS_TOP_ABS)/glafp-utils/docbook
CLEAN_FILES += $(SCRIPT_PROG)
DESTDIR=$(INSTSCRIPTDIR)
include $(TOP)/mk/target.mk
if [ ! -f "$DOCBOOK_CATALOG" ] && [ ! -f "$SGML_CATALOG_FILES" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
if [ -f "$DOCBOOK_CATALOG" ] ; then
CATALOG_OPTION="-c $DOCBOOK_CATALOG"
fi
HTML_STYLESHEET=$HTML_DIR/html/docbook.css
ADMON_GRAPHICS=$HTML_DIR/html/images/*.gif
output=db2html-dir
TMPDIR=DBTOHTML_OUTPUT_DIR$$
echo TMPDIR is $TMPDIR
# Dave Mason's option to specify a different stylesheet
case $1 in
-d) DB_STYLESHEET=$2
shift 2
;;
esac
echo "Using stylesheet: \"${DB_STYLESHEET}\""
if [ $# -gt 2 ]
then
echo "Usage: `basename $0` [filename.sgml]" >&2
exit 1
fi
if [ $# -eq 1 ]
then
if [ ! -r $1 ]
then
echo Cannot read \"$1\". Exiting. >&2
exit 1
fi
if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1
then
# now make sure that the output directory is always a subdirectory
# of hte current directory
echo
input_file=`basename $1`
output="`echo $input_file | sed 's,\.sgml$,,;s,\.sgm$,,'`"
echo "input file was called $input_file -- output will be in $output"
echo
fi
fi
# we used to generate a single file, but with the modular DB_STYLESHEETs
# it's best to make a new directory with several html files in it
#cat $* | jade -d $DB_STYLESHEET -t sgml -V nochunks > $TMPFN
mkdir $TMPDIR
SAVE_PWD=`pwd`
if [ $1 = `basename $1` ]; then
echo "working on ../$1"
(cd $TMPDIR; $JADE -t sgml -ihtml -d ${DB_STYLESHEET}\#html $CATALOG_OPTION ../$1; cd $SAVE_PWD)
else
echo "working on $1"
(cd $TMPDIR; $JADE -t sgml -ihtml -d ${DB_STYLESHEET}\#html $CATALOG_OPTION $1; cd $SAVE_PWD)
fi
if [ $# -eq 1 ]
then
if [ -d ${output}.junk ]
then
rm -rf ${output}.junk
fi
if [ -d ${output} ]