2013-03-18 14:05:53 +00:00
|
|
|
addSGMLCatalogs () {
|
|
|
|
if test -d $1/sgml/dtd; then
|
|
|
|
for i in $(find $1/sgml/dtd -name docbook.cat); do
|
|
|
|
export SGML_CATALOG_FILES="${SGML_CATALOG_FILES:+:}$i"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
if test -z "$sgmlHookDone"; then
|
|
|
|
sgmlHookDone=1
|
|
|
|
|
2015-01-02 20:50:51 +00:00
|
|
|
# Set http_proxy and ftp_proxy to a invalid host to prevent
|
|
|
|
# xmllint and xsltproc from trying to download DTDs from the
|
|
|
|
# network even when --nonet is not given. That would be impure.
|
|
|
|
# (Note that .invalid is a reserved domain guaranteed not to
|
|
|
|
# work.)
|
|
|
|
export http_proxy=http://nodtd.invalid/
|
|
|
|
export ftp_proxy=http://nodtd.invalid/
|
|
|
|
|
2013-03-18 14:05:53 +00:00
|
|
|
export SGML_CATALOG_FILES
|
2014-07-08 13:20:05 +01:00
|
|
|
envHooks+=(addSGMLCatalogs)
|
2013-03-18 14:05:53 +00:00
|
|
|
fi
|