#!/bin/sh

_OLD=${1%-r[0-9]*}

if command -v xmlcatalog > /dev/null; then
	xmlcatalog --noout --del \
		"/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \
		etc/xml/catalog
	xmlcatalog --noout --del \
		"/usr/share/xml/docbook/xsl-stylesheets" \
		etc/xml/catalog
fi