blob: a533102cd540f49621334479c193e8fd0efc7787 (
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
30
31
32
33
34
35
36
|
#!/bin/sh
#
# $NetBSD: soffice,v 1.2 2000/03/15 07:00:52 rh Exp $
#
SOINST=@@PREFIX@@/Office51
[ "$SOFFICE" = "" ] && SOFFICE=$HOME/Office51
if [ "`/sbin/mount | grep 'on /proc' | cut -d ' ' -f 5`" != "procfs" ]; then
echo "-----------------------------------------------------------------"
echo "StarOffice needs procfs to be mounted on /proc in order to work. "
echo "-----------------------------------------------------------------"
exit 1
fi
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 $*
|