From: Adam Di Carlo Date: Thu, 19 Dec 2002 22:13:58 +0000 (+0000) Subject: if source is an XML file, and this is jade, then also include the XML X-Git-Tag: release/1.79.1~6^2~5052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5d5680dc0129e7cbc9cc0685e36e46104ce6a25;p=docbook-dsssl if source is an XML file, and this is jade, then also include the XML declaration -- is that too clever by half? emit the jade cmdline we'll be running --- diff --git a/cvstools/runjade b/cvstools/runjade index 7f45859c5..8dadb476b 100755 --- a/cvstools/runjade +++ b/cvstools/runjade @@ -29,4 +29,18 @@ if [ -f /share/doctypes/catalog ]; then CATALOGS="$CATALOGS -c /share/doctypes/catalog" fi -exec $JADE $CATALOGS -t $FORMAT -d $DSSSL $* $SOURCE +# if jade && file is XML, add the XML catalog +if [ `basename $JADE` = jade ] && [ ${SOURCE%.xml} != $SOURCE ]; then + for file in /usr/share/sgml/declaration/xml.dcl \ + /usr/share/sgml/declaration/xml.decl \ + /usr/lib/sgml/declaration/xml.dcl \ + /usr/lib/sgml/declaration/xml.decl ; do + if [ -f $file ]; then + DECL=$file + break + fi + done +fi + +echo $JADE $CATALOGS -t $FORMAT -d $DSSSL $* $DECL $SOURCE +exec $JADE $CATALOGS -t $FORMAT -d $DSSSL $* $DECL $SOURCE