PREUN
/bin/sh
if [ $1 -eq 0 ];then
idextension=$(unopkg3.0.1_64 list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
if [ "z$idextension" != "z" ]; then
unopkg3.0.1_64 remove --shared $idextension 2> /dev/null
unopkg3.0.1_64 list --shared &> /dev/null
fi
fi
# %post report-builder
# upgrade
# if [ $1 -ge 1 ];then
# idextension=$(unopkg3.0.1_64 list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
# if [ "z$idextension" != "z" ]; then
# unopkg3.0.1_64 remove --shared $idextension 2> /dev/null
# unopkg3.0.1_64 list --shared &> /dev/null
# fi
# fi
#install
# unopkg3.0.1_64 add --shared /usr/lib64/ooo-3.0.1_64/sun-report-builder.oxt 2> /dev/null
# unopkg3.0.1_64 list --shared &> /dev/null
#uninstall
# %preun report-builder
# if [ $1 -eq 0 ];then
# idextension=$(unopkg3.0.1_64 list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
# if [ "z$idextension" != "z" ]; then
# unopkg3.0.1_64 remove --shared $idextension 2> /dev/null
# unopkg3.0.1_64 list --shared &> /dev/null
# fi
# fi
POSTIN
/bin/sh
# upgrade
if [ $1 -ge 2 ];then
idextension=$(unopkg3.0.1_64 list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
if [ "z$idextension" ! "z" ]; then
unopkg3.0.1_64 remove --shared $idextension 2> /dev/null
unopkg3.0.1_64 list --shared &> /dev/null
fi
fi
#install
unopkg3.0.1_64 add --shared /usr/lib64/ooo-3.0.1_64/presenter-screen.oxt 2> /dev/null
unopkg3.0.1_64 list --shared &> /dev/null