2014-11-25 15:02:19 +00:00
|
|
|
|
addXMLCatalogs () {
|
|
|
|
|
local d i
|
|
|
|
|
# ‘xml/dtd’ and ‘xml/xsl’ are deprecated. Catalogs should be
|
|
|
|
|
# installed underneath ‘share/xml’.
|
|
|
|
|
for d in $1/share/xml $1/xml/dtd $1/xml/xsl; do
|
|
|
|
|
if [ -d $d ]; then
|
|
|
|
|
for i in $(find $d -name catalog.xml); do
|
|
|
|
|
XML_CATALOG_FILES+=" $i"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-31 17:57:33 +00:00
|
|
|
|
if [ -z "${libxmlHookDone-}" ]; then
|
2014-11-25 15:02:19 +00:00
|
|
|
|
libxmlHookDone=1
|
|
|
|
|
|
|
|
|
|
# Set up XML_CATALOG_FILES. An empty initial value prevents
|
|
|
|
|
# xmllint and xsltproc from looking in /etc/xml/catalog.
|
2019-10-31 17:57:33 +00:00
|
|
|
|
export XML_CATALOG_FILES=''
|
2014-11-25 15:02:19 +00:00
|
|
|
|
if [ -z "$XML_CATALOG_FILES" ]; then XML_CATALOG_FILES=" "; fi
|
2017-08-10 23:22:07 +01:00
|
|
|
|
addEnvHooks "$hostOffset" addXMLCatalogs
|
2014-11-25 15:02:19 +00:00
|
|
|
|
fi
|