3 # This file contains the contents of the OOo rpm
4 # pre-install, post-install, pre-uninstall and post-uninstall scripts
6 PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
14 if [ ! -f $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
16 if [ -f $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 ]
18 ${LN} -s $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
22 if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
24 ${LN} -s $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
27 if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
29 ${LN} -s $PRODUCTINSTALLLOCATION/program/python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
32 if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
34 chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
39 if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
41 ${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
44 if [ -h $PRODUCTINSTALLLOCATION/program/python-core ]
46 ${RM} $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
49 if [ -h $PRODUCTINSTALLLOCATION/program/python ]
51 ${RM} $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1