~ubuntu-branches/ubuntu/utopic/accessodf/utopic

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Package Import Robot
  • Author(s): Sebastian Humenda
  • Date: 2012-04-09 11:21:13 UTC
  • Revision ID: package-import@ubuntu.com-20120409112113-huzjydidped86kce
Tags: 0.1-1
Initial release, packaged as a dependency for odt2braille. (Closes: #668144)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# This maintainer script was originally written by Harri Pitkänen, Teemu Likonen
 
3
# and Timo Jyrinki and was adopted from the openoffice.org-voikko package. It
 
4
# was modified by Sebastian Humenda to fit for the AccessODF package.
 
5
 
 
6
PATH=/bin:/usr/bin
 
7
 
 
8
set -e
 
9
 
 
10
add_extension() {
 
11
    echo -n "Adding extension $1..."
 
12
    #INSTDIR=`mktemp -d`
 
13
    unopkg add --shared $1
 
14
        #"-env:UserInstallation=file:///$INSTDIR" \
 
15
        #'-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
 
16
        #"-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
 
17
    #if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
 
18
    echo " done."
 
19
}
 
20
 
 
21
if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
 
22
    add_extension /usr/share/accessodf/AccessODF.oxt
 
23
fi
 
24
 
 
25
#DEBHELPER#