aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-3/files/openoffice-wrapper
blob: fc640b16e686d8da228fdec17ec5ce138f9adbce (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-3/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