summaryrefslogtreecommitdiff
path: root/system/docbook-xsl/docbook-xsl.post-deinstall
blob: ffe2a0f23dd300db385830bc5e1488025db24723 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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