blob: 8295480eb57fed2498a19446fc1ea137959c4fb3 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#!/bin/sh
#
# $NetBSD: soffice,v 1.2 2005/02/26 01:22:16 dmcmahill Exp $
#
SOINST=@@PREFIX@@/OpenOffice.org@@OO_VER@@
[ "X$SOFFICE" = "X" ] && SOFFICE=$HOME/OpenOffice.org@@OO_VER@@
# make sure we can find `whoami` on solaris
PATH=${PATH}:/usr/ucb
if [ ! -d "$SOFFICE" ]; then
echo ""
echo "-----------------------------------------------------------------"
echo " OpenOffice has not yet been set up for `whoami`."
echo " Starting setup ... "
echo ""
echo " (If OpenOffice 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 ""
# add an existing java directory to $PATH to allow OO to
# automatically find it
#
if [ -n "$JAVA_HOME" -a -f "$JAVA_HOME/bin/java" ]; then
export PATH=$PATH:$JAVA_HOME/bin
fi
cd $SOINST
BASENAME=`basename $0`
TMPD=/tmp/${BASENAME}.$$
TMPFILE=${TMPD}/setup_tmp
mkdir -m 0700 $TMPD
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 -fr ${TMPD}
echo ""
echo "Done. Starting OpenOffice ..."
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 "$@"
|