summaryrefslogtreecommitdiff
path: root/misc/staroffice/files/soffice
diff options
context:
space:
mode:
Diffstat (limited to 'misc/staroffice/files/soffice')
-rwxr-xr-xmisc/staroffice/files/soffice29
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/staroffice/files/soffice b/misc/staroffice/files/soffice
new file mode 100755
index 00000000000..1f624e1ec0a
--- /dev/null
+++ b/misc/staroffice/files/soffice
@@ -0,0 +1,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 $*