at master 22 lines 714 B view raw
1addSGMLCatalogs () { 2 if test -d $1/sgml/dtd; then 3 for i in $(find $1/sgml/dtd -name docbook.cat); do 4 export SGML_CATALOG_FILES="${SGML_CATALOG_FILES:+:}$i" 5 done 6 fi 7} 8 9if test -z "${sgmlHookDone-}"; then 10 sgmlHookDone=1 11 12 # Set http_proxy and ftp_proxy to a invalid host to prevent 13 # xmllint and xsltproc from trying to download DTDs from the 14 # network even when --nonet is not given. That would be impure. 15 # (Note that .invalid is a reserved domain guaranteed not to 16 # work.) 17 export http_proxy=http://nodtd.invalid/ 18 export ftp_proxy=http://nodtd.invalid/ 19 20 export SGML_CATALOG_FILES 21 addEnvHooks "$targetOffset" addSGMLCatalogs 22fi