2013-03-18 15:05:53 +01: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
|
|
|
|
}
|
|
|
|
|
2019-11-06 01:19:14 +01:00
|
|
|
if test -z "${sgmlHookDone-}"; then
|
2013-03-18 15:05:53 +01:00
|
|
|
sgmlHookDone=1
|
|
|
|
|
2015-01-02 21:50:51 +01: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 15:05:53 +01:00
|
|
|
export SGML_CATALOG_FILES
|
2017-08-11 00:22:07 +02:00
|
|
|
addEnvHooks "$targetOffset" addSGMLCatalogs
|
2013-03-18 15:05:53 +01:00
|
|
|
fi
|