1 if [ -z "$SGML_CATALOG_FILES" ] ; then
2 for i in "$FPTOOLS_CATALOG_FILE" /usr/share/sgml/CATALOG.docbkdsl ; do
3 if [ -n "$i" -a -r "$i" ] ; then
4 SGML_CATALOG_FILES="$i"
10 if [ -z "$SGML_CATALOG_FILES" ] ; then
11 echo "CATALOG file not set up; see installation guide for details."
17 # Dave Mason's option to specify a different stylesheet
24 echo "Using stylesheet: \"${DB_STYLESHEET}\""
28 echo "Usage: `basename $0` [filename.sgml]" >&2
36 echo Cannot read \"$1\". Exiting. >&2
39 if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1
41 output="`echo $1 | sed 's,\.sgml$,.rtf,;s,\.sgm$,.rtf,'`"
45 cat $* | $JADE -t rtf -d ${DB_STYLESHEET}\#print -c $SGML_CATALOG_FILES
49 mv jade-out.rtf $output