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
|
|
|
|
}
|
|
|
|
|
|
|
|
if test -z "$sgmlHookDone"; then
|
|
|
|
sgmlHookDone=1
|
|
|
|
|
|
|
|
export SGML_CATALOG_FILES
|
2014-07-08 14:20:05 +02:00
|
|
|
envHooks+=(addSGMLCatalogs)
|
2013-03-18 15:05:53 +01:00
|
|
|
fi
|