1 # Frontend to convert a docbook file into something else
2 # Send any comments to Eric Bischoff <eric@caldera.de>
3 # This program is under GPL license. See LICENSE file for details.
6 # Give the location of the centralized catalog
7 # First try the one with a version matching the version that is indicated in the document
9 if [ -n "$SGML_NORM" ]; then
15 SGML_VERSION=`"$SGML_NORM" $SGML_NORM_OPTS -- "$SGML_FILE" 2>/dev/null |
18 sed 's/^.*DocBook\( XML\)\? V\([0-9][\.0-9]*\).*$/\2/'`
20 for f in "${SGML_CATALOGS_DIR}/${SGML_XML}-docbook-${SGML_VERSION}"*".cat"
28 if [ -z "$SGML_CATALOG" ]
30 if [ "${SGML_XML}" != "sgml" ]
31 then SGML_CATALOG=${SGML_CATALOGS_DIR}/${SGML_XML}-docbook.cat
32 else SGML_CATALOG=${SGML_CATALOGS_DIR}/catalog
37 # Find a stylesheet on the model "html/docbook.dsl" or "print/docbook.dsl"
39 case $SGML_STYLESHEET in
41 echo "${SGML_BASE_DIR}/docbook/utils-@VERSION@/docbook-utils.dsl#${SGML_TYPE}"
44 find $SGML_BASE_DIR -name docbook.dsl | grep "$SGML_TYPE/docbook.dsl" | awk '{print $1}'