PREUN
/bin/sh
if [ $1 -eq 0 ];then
idextension=$(/usr/bin/unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
if [ "z$idextension" != "z" ]; then
/usr/bin/unopkg remove --shared $idextension 2> /dev/null
/usr/bin/unopkg list --shared &> /dev/null
fi
fi
POSTIN
/bin/sh
# upgrade
if [ $1 -ge 2 ];then
idextension=$(/usr/bin/unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
if [ "z$idextension" != "z" ]; then
/usr/bin/unopkg remove --shared $idextension 2> /dev/null
/usr/bin/unopkg list --shared &> /dev/null
fi
fi
#install
/usr/bin/unopkg add --shared /usr/lib64/ooo/extensions/wiki-publisher.oxt 2> /dev/null
/usr/bin/unopkg list --shared &> /dev/null