Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 8e6bf9cece1ffbab934315fa0c0f8641 > scriptlet

openoffice.org-presenter-screen-3.1.1-0.4mdvmes5.1.i586.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ];then
	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		unopkg remove --shared $idextension 2> /dev/null
		unopkg list --shared &> /dev/null
	fi
fi

# %post report-builder
# upgrade 
# if [ $1 -ge 1 ];then
#	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
#	if [ "z$idextension" != "z" ]; then
#		unopkg remove --shared $idextension 2> /dev/null
#		unopkg list --shared &> /dev/null
#	fi
# fi
#install 
# unopkg add --shared /usr/lib/ooo/sun-report-builder.oxt 2> /dev/null
# unopkg list --shared &> /dev/null 

#uninstall
# %preun report-builder
# if [ $1 -eq 0 ];then
#	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
#	if [ "z$idextension" != "z" ]; then
#		unopkg remove --shared $idextension 2> /dev/null
#		unopkg list --shared &> /dev/null
#	fi
# fi

POSTIN

/bin/sh
# upgrade 
if [ $1 -ge 2 ];then
	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
	if [ "z$idextension" ! "z" ]; then
		unopkg remove --shared $idextension 2> /dev/null
		unopkg list --shared &> /dev/null
	fi
fi
#install 
unopkg add --shared /usr/lib/ooo/presenter-screen.oxt 2> /dev/null
unopkg list --shared &> /dev/null