PREUN
/bin/sh
if [ "$1" -eq 0 ]; then
if [ -x /usr/lib64/openoffice.org3.0/program/unopkg ]; then
/usr/lib64/openoffice.org3.0/program/unopkg remove -f --shared Calc2LaTeX || \
echo "ERROR: Extension registering may fail if concurrent OOo process(es) are running. Plese quit all OOo process(es) before update/remove."
fi
fi
POSTIN
/bin/sh
# registration to OOo
# for detailed usage of unopkg, see a following link
# http://docs.sun.com/app/docs/doc/819-1346/6n3n8r056?l=ja&a=view
#if [ "$1" -eq 1 ]; then
if [ -x /usr/lib64/openoffice.org3.0/program/unopkg ]; then
/usr/lib64/openoffice.org3.0/program/unopkg add -f --shared /usr/lib64/openoffice.org3.0/share/basic/Calc2LaTeX \
|| echo "ERROR: Extension registering may fail if concurrent OOo process(es) are running. Plese quit all OOo process(es) before update/remove."
fi
#fi