Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-updates > by-pkgid > 93a701e1af143ae27ba457efe8d3b866 > scriptlet

openoffice.org-presentation-minimizer-3.2.1-0.3mdv2010.2.x86_64.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ];then
	idextension=$(/usr/bin/unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.star.PresentationMinimizer-linux.*\)/\1/p');
	if [ "z$idpdfimport" != "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.star.PresentationMinimizer-linux.*\)/\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/presentation-minimizer.oxt 2> /dev/null
/usr/bin/unopkg list --shared &> /dev/null