#!/bin/sh # $FreeBSD: head/textproc/docbook-xsl-ns/files/pkg-install.in 333527 2013-11-11 17:41:15Z hrs $ # 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 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