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