Début de support Coda dans OpenOffice.
[macros-openoffice.git] / auf-poste-client-reflets / debian / postinst
1 #!/bin/sh
2
3 exit 0
4
5 set -e
6
7 add_extension() {
8   echo -n "Adding extension $1..."
9   INSTDIR=`mktemp -d`
10   /usr/lib/openoffice/program/unopkg add --shared $1 \
11     "-env:UserInstallation=file:///$INSTDIR" \
12     '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
13     "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
14   if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
15   echo " done."
16 }
17
18 if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
19   add_extension /usr/lib/openoffice/share/extension/install/auf-reflets-tse.oxt
20 fi
21
22 exit 0