aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-2.0/files/openoffice-wrapper
blob: 13e8160197a3c798632ed2a7590543a0ce6bf42e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0/files/Attic/openoffice-wrapper,v 1.3 2003-03-05 23:24:05 mbr Exp $

oopath=%%PREFIX%%/OpenOffice.org-%%BUILD_NR%%/program/
program=`echo $0 | sed -e 's|.*-||'`

if [ ! $LANG ]; then
    export LANG=%%LANG%%
fi

case $program in
$0)
    exec $oopath/soffice "$@"
    ;;
    *)
    exec $oopath/$program "$@"
    ;;
esac