De retour de congés...
[macros-openoffice.git] / auf-poste-client-reflets / debian / postinst
... / ...
CommitLineData
1#!/bin/sh
2
3set -e
4
5add_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
16if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
17 add_extension /usr/lib/openoffice/share/extension/install/auf-reflets-tse.oxt
18fi
19
20exit 0