#! /bin/bash usage() { cat <' $tst` if [ "$check" != "" ] ; then entxml=$tst break fi done if [ "$entxml" = "" ] ; then echo could not locate ISO DocBook entities exit 1 fi isodir=`dirname $entxml` echo Found ISO DocBook entities in $isodir xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Publishing//EN" \ "file://$isodir/iso-pub.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Greek Letters//EN" \ "file://$isodir/iso-grk1.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \ "file://$isodir/iso-box.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Greek Symbols//EN" \ "file://$isodir/iso-grk3.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \ "file://$isodir/iso-amsn.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \ "file://$isodir/iso-num.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \ "file://$isodir/iso-grk4.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Diacritical Marks//EN" \ "file://$isodir/iso-dia.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \ "file://$isodir/iso-grk2.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \ "file://$isodir/iso-amsa.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \ "file://$isodir/iso-amso.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \ "file://$isodir/iso-cyr1.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES General Technical//EN" \ "file://$isodir/iso-tech.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \ "file://$isodir/iso-amsc.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Latin 1//EN" \ "file://$isodir/iso-lat1.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \ "file://$isodir/iso-amsb.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Latin 2//EN" \ "file://$isodir/iso-lat2.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \ "file://$isodir/iso-amsr.ent" $CATALOG xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \ "file://$isodir/iso-cyr2.ent" $CATALOG xmlcatalog --noout --add "delegatePublic" \ "ISO 8879:1986" \ "file://$CATALOG" $ROOTCATALOG # # find the prefix for XSLT stylesheets # top=`dirname $docbookdir` found=`find $top -name chunk.xsl` if [ "$found" = "" ] ; then found=`find /usr/share/xml -name chunk.xsl` fi if [ "$found" = "" ] ; then found=`find $HOME -name chunk.xsl` fi if [ "$found" = "" ] ; then found=`find /usr/local -name chunk.xsl` fi if [ "$found" = "" ] ; then found=`find /usr/share/sgml -name chunk.xsl` fi if [ "$found" = "" ] ; then echo could not locate chunk-common.xsl of DocBook XSLT stylesheets exit 1 fi xsldir="" for tst in $found; do dir=`dirname $tst` dir=`dirname $dir` if [ -r $dir/html/docbook.xsl -a -r $dir/common/l10n.xml ]; then xsldir=$dir break fi done if [ "$xsldir" = "" ] ; then echo could not locate DocBook XSLT stylesheets exit 1 fi echo Found DocBook XSLT stylesheets in $xsldir for version in current 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 \ 1.48 1.49 1.50 do xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/$version" \ "file://$xsldir" $CATALOG xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/$version" \ "file://$xsldir" $CATALOG done xmlcatalog --noout --add "delegateSystem" \ "http://docbook.sourceforge.net/release/xsl/" \ "file://$CATALOG" $ROOTCATALOG xmlcatalog --noout --add "delegateURI" \ "http://docbook.sourceforge.net/release/xsl/" \ "file://$CATALOG" $ROOTCATALOG # #