#!/bin/sh # # Original: $NetBSD: soffice,v 1.4 2004/05/03 20:56:36 mrauch Exp $ # Modified for StarOffice7 by Daniel de Kok # SOINST=/usr/pkg/staroffice7 [ "$SOFFICE" = "" ] && SOFFICE=$HOME/staroffice7 if [ ! -d "$SOFFICE" ]; then echo "" echo "-----------------------------------------------------------------" echo " StarOffice has not yet been set up for `whoami`." echo " Starting setup ... " echo "" echo " (If StarOffice has already been set up for `whoami` or you" echo " want to install it someplace other than $SOFFICE" echo " please abort the installation procedure now, set the \$SOFFICE " echo " environment variable accordingly and rerun $0.)" echo "-----------------------------------------------------------------" echo "" cd $SOINST BASENAME=`basename $0` TMPFILE=`mktemp -q /tmp/$BASENAME.XXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 fi cat << EOF >> ${TMPFILE} [ENVIRONMENT] INSTALLATIONMODE=INSTALL_WORKSTATION INSTALLATIONTYPE=WORKSTATION DESTINATIONPATH=$SOFFICE OUTERPATH= LOGFILE= EOF ./setup -nogui -r:${TMPFILE} rm -f ${TMPFILE} echo "" echo "Done. Starting StarOffice ..." echo "" fi # We've got a large number of shared libraries and other single files which # have to be open for normal operation ulimit -n `ulimit -n -H` if [ -z $PTHREAD_DIAGASSERT ]; then PTHREAD_DIAGASSERT=AEL export PTHREAD_DIAGASSERT fi exec ${SOFFICE}/soffice "$@"