# ${TOOLS_BASE}/docbook-xsl-1.75.2/tools/bin is not in PATH, so add it
if [ "${PATH#*${TOOLS_BASE}/docbook-xsl-1.75.2/tools/bin*}" = "$PATH" ]; then
  PATH="${TOOLS_BASE}/docbook-xsl-1.75.2/tools/bin:$PATH"
  export PATH
fi
if [ -z "$XML_CATALOG_FILES" ]; then
  XML_CATALOG_FILES="${TOOLS_BASE}/docbook-xsl-1.75.2/catalog.xml"
else
  # ${TOOLS_BASE}/docbook-xsl-1.75.2/catalog.xml is not in XML_CATALOG_FILES, so add it
  if [ "${XML_CATALOG_FILES#*${TOOLS_BASE}/docbook-xsl-1.75.2/catalog.xml*}" = "$XML_CATALOG_FILES" ]; then
    XML_CATALOG_FILES="${TOOLS_BASE}/docbook-xsl-1.75.2/catalog.xml $XML_CATALOG_FILES"
  fi
fi
# /etc/xml/catalog exists but is not in XML_CATALOG_FILES, so add it
if [ -f /etc/xml/catalog ] &&   [ "${XML_CATALOG_FILES#*/etc/xml/catalog*}" = "$XML_CATALOG_FILES" ]; then
  XML_CATALOG_FILES="$XML_CATALOG_FILES /etc/xml/catalog"
fi
export XML_CATALOG_FILES

if [ -z "$SGML_CATALOG_FILES" ]; then
  SGML_CATALOG_FILES="${TOOLS_BASE}/docbook-xsl-1.75.2/catalog"
else
  # ${TOOLS_BASE}/docbook-xsl-1.75.2/catalog is not in SGML_CATALOG_FILES, so add it
  if [ "${SGML_CATALOG_FILES#*${TOOLS_BASE}/docbook-xsl-1.75.2/catalog}" = "$SGML_CATALOG_FILES" ]; then
    SGML_CATALOG_FILES="${TOOLS_BASE}/docbook-xsl-1.75.2/catalog:$SGML_CATALOG_FILES"
  fi
fi
# /etc/sgml/catalog exists but is not in SGML_CATALOG_FILES, so add it
if [ -f /etc/sgml/catalog ] &&   [ "${SGML_CATALOG_FILES#*/etc/sgml/catalog*}" = "$SGML_CATALOG_FILES" ]; then
  SGML_CATALOG_FILES="$SGML_CATALOG_FILES:/etc/sgml/catalog"
fi
export SGML_CATALOG_FILES


if [ -z "$CLASSPATH" ]; then
  CLASSPATH="${DOC_SRC}/cfg"
else
  # ${DOC_SRC}/cfg is not in CLASSPATH, so add it
  if [ "${CLASSPATH#*${DOC_SRC}/cfg*}" = "$CLASSPATH" ]; then
    CLASSPATH="${DOC_SRC}/cfg:$CLASSPATH"
  fi
fi
# ${TOOLS_BASE}/xml-commons-resolver-1.2/resolver.jar is not in CLASSPATH, so add it
if [ "${CLASSPATH#*${TOOLS_BASE}/xml-commons-resolver-1.2/resolver.jar*}" = "$CLASSPATH" ]; then
CLASSPATH="${TOOLS_BASE}/xml-commons-resolver-1.2/resolver.jar:$CLASSPATH"
fi
export CLASSPATH
