about summary refs log tree commit diff
path: root/pkgs/tools/text/sgml/opensp/setup-hook.sh
blob: 72751b85ef605fb37848d125614cb49c6f3cfe3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    envHooks=(${envHooks[@]} addSGMLCatalogs)
fi