summaryrefslogtreecommitdiff
path: root/misc/staroffice/files/soffice
blob: 1f624e1ec0a7d67056aa21facfd178a923d10b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
#	$NetBSD: soffice,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $
#
SOINST=@@PREFIX@@/Office51
[ "$SOFFICE" = "" ] && SOFFICE=$HOME/Office51

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 ""

	@@PREFIX@@/bin/sosetup

	echo ""
	echo "Done.  Starting StarOffice ..."
	echo ""
fi

export LD_LIBRARY_PATH=@@PREFIX@@/Office51:@@PREFIX@@/Office51/lib:${SOFFICE}:${SOFFICE}/lib
exec ${SOINST}/bin/soffice $*