-if [ -z "$SGML_CATALOG_FILES" ] ; then
- for i in "$FPTOOLS_CATALOG_FILE" /usr/share/sgml/CATALOG.docbkdsl ; do
- if [ -n "$i" -a -r "$i" ] ; then
- SGML_CATALOG_FILES="$i"
- break
- fi
- done
-fi
-
-if [ -z "$SGML_CATALOG_FILES" ] ; then
+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
SAVE_PWD=`pwd`
if [ $1 = `basename $1` ]; then
echo "working on ../$1"
- (cd $TMPDIR; $JADE -t sgml -ihtml -d ${DB_STYLESHEET}\#html -c $SGML_CATALOG_FILES ../$1; cd $SAVE_PWD)
+ (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 -c $SGML_CATALOG_FILES $1; cd $SAVE_PWD)
+ (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
- /bin/rm -rf ${output}.junk
+ rm -rf ${output}.junk
fi
if [ -d ${output} ]
then