aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-xsl-ns/files/pkg-install.in
blob: c58c447febd6c65651ca882d152e527510105d5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# $FreeBSD$
# This script will create the docbook-xsl catalog and will add entries to xml catalog.
# WARNING: If you change this script, be sure to check pkg-deinstall.in!
#
# Based on http://xmlsoft.org/buildDocBookCatalog file.
#
# Run the following command to generate a new VERSIONS string:
# perl -n -e '/Version ([\d.]+) rel/ && print "$1\n"' work/*/ChangeLog |
#     sort -n | tr '\n' ' '
#
# -- Rui Lopes <rui@ruilopes.com>

case $2 in
POST-INSTALL)
	%%XMLCATMGR%% -c %%CATALOG_PORTS%% add nextCatalog \
	    "${PKG_PREFIX}/%%INSTDIR%%/catalog.xml"
;;
POST-DEINSTALL)
	%%XMLCATMGR%% -c %%CATALOG_PORTS%% remove \
	    "${PKG_PREFIX}/%%INSTDIR%%/catalog.xml"
;;
esac
exit 0