freebsd-ports/editors/openoffice.org-2.0-devel/files/openoffice-wrapper
Martin Blapp 97291070e5 Fix path of soffice binary.
Submitted by:	Hiromi Kimura <hiromi@tac.tsukuba.ac.jp>
2003-04-16 06:51:35 +00:00

25 lines
566 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0-devel/files/Attic/openoffice-wrapper,v 1.7 2003-04-16 06:51:35 mbr Exp $
oopath=%%PREFIX%%/OpenOffice.org-%%BUILD_NR%%/program/
program=`echo $0 | sed -e 's|.*-||'`
if [ ! $LANG ]; then
export LANG=%%LANG%%
fi
if [ -e $HOME/OpenOffice.org644/setup.log ]; then
if [ ! -e $HOME/OpenOffice.org644/user/config/soffice.cfg ]; then
touch $HOME/OpenOffice.org644/user/config/soffice.cfg
fi
fi
case $program in
$0)
cd $oopath && ./soffice "$@"
;;
*)
cd $oopath && exec ./$program "$@"
;;
esac