summaryrefslogtreecommitdiff
path: root/system/docbook-xsl/docbook-xsl.post-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'system/docbook-xsl/docbook-xsl.post-deinstall')
-rw-r--r--system/docbook-xsl/docbook-xsl.post-deinstall10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/docbook-xsl/docbook-xsl.post-deinstall b/system/docbook-xsl/docbook-xsl.post-deinstall
new file mode 100644
index 000000000..3faecd5a3
--- /dev/null
+++ b/system/docbook-xsl/docbook-xsl.post-deinstall
@@ -0,0 +1,10 @@
+#!/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
+fi
+