Commit c04238f0 authored by rrt's avatar rrt
Browse files

[project @ 2000-05-31 13:22:25 by rrt]

Update to use DOCBOOK_CATALOG to get the correct catalog.
parent 9b6f49a2
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
DOCBOOK_CATALOG=$1
shift
if [ -z "$SGML_CATALOG_FILES" ] ; then
if [ ! -f "$DOCBOOK_CATALOG" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
......@@ -44,7 +38,7 @@ echo OUTPUT FILE NAME IS $output
TMPFN=`echo $1 | sed 's/\.sgml//'`
$JADE -t tex -d ${DB_STYLESHEET}\#print -o ${TMPFN}.tex -c $SGML_CATALOG_FILES $1
$JADE -t tex -d ${DB_STYLESHEET}\#print -o ${TMPFN}.tex -c $DOCBOOK_CATALOG $1
jadetex ${TMPFN}.tex
......
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
DOCBOOK_CATALOG=$1
shift
if [ -z "$SGML_CATALOG_FILES" ] ; then
if [ ! -f "$DOCBOOK_CATALOG" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
......@@ -62,10 +56,10 @@ mkdir $TMPDIR
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 -c $DOCBOOK_CATALOG ../$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 -c $DOCBOOK_CATALOG $1; cd $SAVE_PWD)
fi
if [ $# -eq 1 ]
......
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
DOCBOOK_CATALOG=$1
shift
if [ -z "$SGML_CATALOG_FILES" ] ; then
if [ ! -f "$DOCBOOK_CATALOG" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
......@@ -42,7 +36,7 @@ then
fi
fi
$JADE -t tex -d ${DB_STYLESHEET}\#print -o ${TMPFN}.tex -c $SGML_CATALOG_FILES $1
$JADE -t tex -d ${DB_STYLESHEET}\#print -o ${TMPFN}.tex -c $DOCBOOK_CATALOG $1
pdf$JADEtex $TMPFN
......
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
DOCBOOK_CATALOG=$1
shift
if [ -z "$SGML_CATALOG_FILES" ] ; then
if [ ! -f "$DOCBOOK_CATALOG" ] ; then
echo "CATALOG file not set up; see installation guide for details."
exit 1
fi
......@@ -42,7 +36,7 @@ then
fi
fi
cat $* | $JADE -t rtf -d ${DB_STYLESHEET}\#print -c $SGML_CATALOG_FILES
cat $* | $JADE -t rtf -d ${DB_STYLESHEET}\#print -c $DOCBOOK_CATALOG
if [ $# -eq 1 ]
then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment