diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-13 11:29:33 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-13 11:29:33 +0000 |
commit | ff05e883c4534499b5d6db41fa3674b5913f87a2 (patch) | |
tree | 274af3c3679145112ffedd1ead439ce3a22c7d2c /solenv | |
parent | 829d42e9b622ff61c47cf5f85aaea9eb7cf1101b (diff) |
INTEGRATION: CWS qadev32 (1.1.2); FILE ADDED
2008/06/04 10:44:17 cn 1.1.2.5: #i85368# add possibility to check OpenOffice.org also
2008/05/05 11:16:11 cn 1.1.2.4: #i85368# bugfixing, header change
2008/04/16 18:20:29 cn 1.1.2.3: #i85368# bugfixes
2008/03/03 22:18:28 cn 1.1.2.2: #i85368# enhancements and updates for automatic office installation
2008/02/25 16:06:48 cn 1.1.2.1: #i85368 new scripts to execute cwscheckapi
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/installoffice | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/solenv/bin/installoffice b/solenv/bin/installoffice new file mode 100755 index 000000000000..be12fc1ba355 --- /dev/null +++ b/solenv/bin/installoffice @@ -0,0 +1,85 @@ +#************************************************************************* +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2008 by Sun Microsystems, Inc. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: installoffice,v $ +# +# $Revision: 1.2 $ +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +#***********************************************************************/ + +#!/bin/sh +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_ERROR=2 +EXIT_BUG=10 + +if [ x${SOLARENV}x = xx ]; then + echo No environment found, please use 'configure' or 'setsolar' + exit $EXIT_FAILURE +fi +usage() { + echo "Usage: $SCRIPTNAME [-t DESTPATH] [-o] [-d]" >&2 + echo "" >&2 + echo "[-t] target path: path wehre tho office should installed to. The default is '$DESTPATH'" >&2 + echo "" >&2 + echo "[-o] force OpenOffice.org installation instead of StarOffice" >&2 + echo "" >&2 + echo "[-d] installation with debug output" >&2 + exit $EXIT_FAILURE +} + +DESTPATH=/tmp/$USER +DEBUG=false +OOO=false + +while getopts ':m:dho' OPTION ; do + case $OPTION in + d) DEBUG=true + ;; + o) OOO=true + ;; + t) DESTPATH="$OPTARG" + ;; + h) usage $EXIT_SUCCESS + ;; + \?) echo "unkown option \"-$OPTARG\"." >&2 + usage $EXIT_ERROR + ;; + *) echo "this is not possible...">&2 + usage $EXIT_BUG + ;; + esac +done + +shift `expr $OPTIND - 1` + +LOCALINSTALLDIR=$DESTPATH/office +LOCALUNPACKDIR=$DESTPATH/unpack + +export LOCALINSTALLDIR +export LOCALUNPACKDIR + +echo "### $SOLARENV/bin/installoffice.pl -debug $DEBUG $@" +exec perl -w $SOLARENV/bin/installoffice.pl -debug $DEBUG -ooo $OOO -cleanup true $@ + +exit $EXIT_SUCCESS
\ No newline at end of file |