1 # Check if we have go-openoffice
3 if [ -d /usr/lib/go-openoffice ]; then
11 echo ">>> Removing old voikko extensions..."
13 while [ "$id" != "" ]; do
14 id=`/usr/lib/${_ooo_ver}/program/unopkg list --shared | egrep '^(Name|Identifier):.*voikko' | cut -d":" -f2 | head -n 1`
15 if [ "$id" != "" ]; then
16 if /usr/lib/${_ooo_ver}/program/unopkg list --shared $id >/dev/null; then
17 echo "Removing extension $id..."
19 /usr/lib/${_ooo_ver}/program/unopkg remove --shared $id \
20 "-env:UserInstallation=file://$INSTDIR" \
21 '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
22 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
23 if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
24 /usr/lib/${_ooo_ver}/program/unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1
31 echo ">>> Adding extension /usr/lib/${_ooo_ver}/share/extension/install/voikko.oxt..."
33 /usr/lib/${_ooo_ver}/program/unopkg add --shared /usr/lib/${_ooo_ver}/share/extension/install/voikko.oxt \
34 "-env:UserInstallation=file:///$INSTDIR" \
35 '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
36 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
37 if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
52 # vim:set ts=2 sw=2 et: