freebsd-ports/editors/openoffice.org-2-devel/files/openoffice-wrapper
2003-06-07 22:09:48 +00:00

25 lines
564 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-devel/files/Attic/openoffice-wrapper,v 1.8 2003-06-07 22:09:46 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.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