diff options
Diffstat (limited to 'textproc/xmlcatmgr/files')
-rw-r--r-- | textproc/xmlcatmgr/files/deinstall.tmpl | 33 | ||||
-rw-r--r-- | textproc/xmlcatmgr/files/install.tmpl | 33 |
2 files changed, 66 insertions, 0 deletions
diff --git a/textproc/xmlcatmgr/files/deinstall.tmpl b/textproc/xmlcatmgr/files/deinstall.tmpl new file mode 100644 index 00000000000..392e8a30a35 --- /dev/null +++ b/textproc/xmlcatmgr/files/deinstall.tmpl @@ -0,0 +1,33 @@ +# $NetBSD: deinstall.tmpl,v 1.1 2003/01/29 20:21:08 jmmv Exp $ +# +# Unregister 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 +DEINSTALL) + if [ -n "${SGML_ENTRIES}" ]; then + ${ECHO} "===> Unregistering SGML catalog entries for ${PKGBASE}" + set -- ${SGML_ENTRIES} + while [ $# -gt 0 ]; do + ${XMLCATMGR} -sc ${SGML_CATALOG} remove "$2" + shift; shift; shift + done + fi + if [ -n "${XML_ENTRIES}" ]; then + ${ECHO} "===> Unregistering XML catalog entries for ${PKGBASE}" + set -- ${XML_ENTRIES} + while [ $# -gt 0 ]; do + ${XMLCATMGR} -c ${XML_CATALOG} remove "$2" + shift; shift; shift + done + fi + ;; +*) + ;; +esac diff --git a/textproc/xmlcatmgr/files/install.tmpl b/textproc/xmlcatmgr/files/install.tmpl new file mode 100644 index 00000000000..448391362fe --- /dev/null +++ b/textproc/xmlcatmgr/files/install.tmpl @@ -0,0 +1,33 @@ +# $NetBSD: install.tmpl,v 1.1 2003/01/29 20:21:08 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 + ${ECHO} "===> Registering SGML catalog entries for ${PKGBASE}" + 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 + ${ECHO} "===> Registering XML catalog entries for ${PKGBASE}" + set -- ${XML_ENTRIES} + while [ $# -gt 0 ]; do + ${XMLCATMGR} -c ${XML_CATALOG} add "$1" "$2" "$3" + shift; shift; shift + done + fi + ;; +*) + ;; +esac |