#!/bin/sh # 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 XSL_DIR=${PKG_PREFIX}/%%INSTDIR%% CATALOG_XSL=${XSL_DIR}/catalog.xml if [ "$2" != "POST-INSTALL" ]; then exit 0 fi test -r "${CATALOG_XSL}" || { echo >&2 "Cannot register non-existent catalog ${CATALOG_XSL}" exit 1 } %%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateSystem \ http://docbook.sourceforge.net/release/xsl/ \ "file://${CATALOG_XSL}" %%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateURI \ http://docbook.sourceforge.net/release/xsl/ \ "file://${CATALOG_XSL}" exit 0