summaryrefslogtreecommitdiff
path: root/misc/openoffice2-bin/files/soffice
blob: a7212b438b3cc94c3d90e4e9b5aa5fd300a6f3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
#	$NetBSD: soffice,v 1.2 2005/10/10 20:08:49 mrauch Exp $
#
SOINST=@@PREFIX@@/openoffice.org@@OO_VER@@

# make sure we can find `whoami` on solaris
PATH=${PATH}:/usr/ucb

# add an existing java directory to $PATH to allow OOo to
# automatically find it
#
if [ -d "@@PREFIX@@/java" ]; then
  for i in @@PREFIX@@/java/*; do
    if [ -f "$i/bin/java" ]; then
	export PATH=$PATH:$i/bin
    fi
  done
fi
# default data seg size is too small for java
ulimit -d `ulimit -H -d`

exec ${SOINST}/program/soffice "$@"