#!/bin/sh

PROGRAM=soffice
sofficedir=/usr/lib/OpenOffice
VERSION=1.0.1

# run the install script if the user has not done so yet
grep -q "OpenOffice.org $VERSION" $HOME/.sversionrc 2> /dev/null || /usr/bin/office-setup

# there is a bug in solaris sh that prevents the use of "$@"
# because it cannot cope with spaces in directory names
exec ${sofficedir}/program/$PROGRAM $@
