PREIN
/bin/sh
if [ $1 -gt 1 ]; then
# Upgrade => deregister old extension
unopkg remove --shared com.sun.wiki-publisher > /dev/null 2>&1 || :
fi
PREUN
/bin/sh
if [ $1 -eq 0 ]; then
# not upgrading => deregister
unopkg remove --shared com.sun.wiki-publisher > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
# register extension
unopkg add --shared --force --link /usr/share/openoffice.org/extensions/wiki-publisher.oxt > /dev/null 2>&1 || :
POSTUN
/bin/sh
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || :