#!/bin/sh # # $FreeBSD: /tmp/pcvs/ports/editors/openoffice-devel/files/Attic/openoffice-wrapper,v 1.4 2003-03-28 09:00:55 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.org1.1Beta/user/config/soffice.cfg ]; then touch $HOME/OpenOffice.org1.1Beta/user/config/soffice.cfg fi case $program in $0) cd $oopath && ./soffice "$@" ;; *) cd $oopath && exec $program "$@" ;; esac