File: postinst

package info (click to toggle)
dmaths 3.2.dfsg.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,180 kB
  • sloc: sh: 59; makefile: 41
file content (20 lines) | stat: -rw-r--r-- 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

add_extension() {
  echo -n "Adding extension $1..."
  INSTDIR=`mktemp -d`
  /usr/lib/openoffice/program/unopkg add --shared $1 \
    "-env:UserInstallation=file:///$INSTDIR" \
    '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
    "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
  if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
  echo " done."
}

if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
	add_extension /usr/lib/openoffice/share/extension/install/DmathsAddon.oxt
fi

#DEBHELPER#