diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-01-29 20:21:06 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-01-29 20:21:06 +0000 |
commit | 50c90b2f77085d9d55051f5adee5ebaa84ee6b59 (patch) | |
tree | 508da3c11def095a402be3a6655c70f001c27238 /textproc/xmlcatmgr/files | |
parent | 9aaa6ee3c1775413e308bc0b8d39e651179a7c0d (diff) | |
download | pkgsrc-50c90b2f77085d9d55051f5adee5ebaa84ee6b59.tar.gz |
Update xmlcatmgr to 0.2. Changes in this version:
* Added XML Catalogs management. You must use the new `-s' flag to handle
SGML Catalogs as XML format becomes the default.
* Dropped use of getopt in favour of getopts, as the former does not handle whitespace in variables properly.
* Handle comments in SGML catalogs properly.
* Several manpage improvements.
Changes in the package:
* Implement a new framework to automatically register/deregister catalog
entries. This is available through the catalogs.mk file. Packages do
not need to call xmlcatmgr directly any more, nor do tricky things in
their PLISTs.
* Install two catalog files under PKG_SYSCONFDIR, one called sgml/catalog
and the other xml/catalog. Both are completely different things, so they
can't be mixed. Also avoid that any of these catalogs refer to the other
one, as this could cause problems.
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 |