summaryrefslogtreecommitdiff
path: root/editors/openoffice-3-devel/files/openoffice-wrapper
blob: 9983d80f8b120c48542d08481d43afb3e3fe83f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $FreeBSD$

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

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

if [ -e $HOME/OpenOffice.org1.1/setup.log ]; then
	if [ ! -e $HOME/OpenOffice.org1.1/user/config/soffice.cfg ]; then
		touch $HOME/OpenOffice.org1.1/user/config/soffice.cfg
	fi
fi

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