You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
697 B
23 lines
697 B
10 years ago
|
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
|
||
|
}
|
||
|
|
||
5 years ago
|
if [ -z "${libxmlHookDone-}" ]; then
|
||
10 years ago
|
libxmlHookDone=1
|
||
|
|
||
|
# Set up XML_CATALOG_FILES. An empty initial value prevents
|
||
|
# xmllint and xsltproc from looking in /etc/xml/catalog.
|
||
5 years ago
|
export XML_CATALOG_FILES=''
|
||
10 years ago
|
if [ -z "$XML_CATALOG_FILES" ]; then XML_CATALOG_FILES=" "; fi
|
||
7 years ago
|
addEnvHooks "$hostOffset" addXMLCatalogs
|
||
10 years ago
|
fi
|