1 2 3 4 5 6 7 8 9 10
#!/bin/sh _OLD=${1%-r[0-9]*} if which xmlcatalog > /dev/null; then xmlcatalog --noout --del \ "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \ etc/xml/catalog fi