pkgsrc/textproc/xmlcatmgr/files/install.tmpl
jmmv 18b182d4cf Update to 1.0:
* Adapted Buildtool scripts to the latest version, 0.14.  As a side effect,
  distribution documentation is now installed into the system.
* Minor manpage fixes.
* Code cleanup.

Fixes in the package: avoid overwriting catalog files when using 'make
replace' (if you have 0.2 installed actually, it won't take any effect, so
be careful by backing up pkg/share/{sgml,xml}/catalog).  'make update' will
work fine.
2003-09-08 12:26:20 +00:00

31 lines
635 B
Cheetah

# $NetBSD: install.tmpl,v 1.3 2003/09/08 12:26:22 jmmv Exp $
#
# Register SGML/XML catalog entries.
#
XMLCATMGR='@XMLCATMGR@'
SGML_CATALOG='@SGML_CATALOG@'
XML_CATALOG='@XML_CATALOG@'
SGML_ENTRIES='@SGML_ENTRIES@'
XML_ENTRIES='@XML_ENTRIES@'
case ${STAGE} in
POST-INSTALL)
if [ -n "${SGML_ENTRIES}" ]; then
set -- ${SGML_ENTRIES}
while [ $# -gt 0 ]; do
${XMLCATMGR} -sc ${SGML_CATALOG} add "$1" "$2" "$3"
shift; shift; shift
done
fi
if [ -n "${XML_ENTRIES}" ]; then
set -- ${XML_ENTRIES}
while [ $# -gt 0 ]; do
${XMLCATMGR} -c ${XML_CATALOG} add "$1" "$2" "$3"
shift; shift; shift
done
fi
;;
*)
;;
esac