summaryrefslogtreecommitdiff
path: root/solenv/bin/installoffice.btm
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-13 11:29:43 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-13 11:29:43 +0000
commit8f52b75f7346fcbc057a4f6fb50eaa5aba2a8d05 (patch)
treedb786a6e72e2eb5e6652ce6a9bf2597578f112c4 /solenv/bin/installoffice.btm
parentff05e883c4534499b5d6db41fa3674b5913f87a2 (diff)
INTEGRATION: CWS qadev32 (1.1.2); FILE ADDED
2008/06/04 10:44:17 cn 1.1.2.4: #i85368# add possibility to check OpenOffice.org also 2008/05/05 11:16:11 cn 1.1.2.3: #i85368# bugfixing, header change 2008/03/03 22:18:28 cn 1.1.2.2: #i85368# enhancements and updates for automatic office installation 2008/02/25 16:07:00 cn 1.1.2.1: #i85368 new scripts to execute cwscheckapi
Diffstat (limited to 'solenv/bin/installoffice.btm')
-rwxr-xr-xsolenv/bin/installoffice.btm60
1 files changed, 60 insertions, 0 deletions
diff --git a/solenv/bin/installoffice.btm b/solenv/bin/installoffice.btm
new file mode 100755
index 000000000000..0778803a7ca7
--- /dev/null
+++ b/solenv/bin/installoffice.btm
@@ -0,0 +1,60 @@
+@echo off
+REM **************************************************************************
+REM * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+REM *
+REM * Copyright 2008 by Sun Microsystems, Inc.
+REM *
+REM * OpenOffice.org - a multi-platform office productivity suite
+REM *
+REM * $RCSfile: installoffice.btm,v $
+REM *
+REM * $Revision: 1.2 $
+REM *
+REM * This file is part of OpenOffice.org.
+REM *
+REM * OpenOffice.org is free software: you can redistribute it and/or modify
+REM * it under the terms of the GNU Lesser General Public License version 3
+REM * only, as published by the Free Software Foundation.
+REM *
+REM * OpenOffice.org is distributed in the hope that it will be useful,
+REM * but WITHOUT ANY WARRANTY; without even the implied warranty of
+REM * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+REM * GNU Lesser General Public License version 3 for more details
+REM * (a copy is included in the LICENSE file that accompanied this code).
+REM *
+REM * You should have received a copy of the GNU Lesser General Public License
+REM * version 3 along with OpenOffice.org. If not, see
+REM * <http://www.openoffice.org/license.html>
+REM * for a copy of the LGPLv3 License.
+REM ************************************************************************/
+
+SET DESTPATH=%tmp%\%USERNAME%
+SET DEBUG=false
+SET OOO=false
+
+for %opt in (%&%) DO (
+ if "%opt%" == "-d" (SET DEBUG=true ^ shift)
+ if "%opt%" == "-o" (SET OOO=true ^ shift)
+ if "%opt%" == "-t" (SET DESTPATH=%2 ^ shift ^ shift)
+ if "%opt%" == "-h" goto usage
+ if "%opt%" == "/h" goto usage
+)
+
+SET LOCALINSTALLDIR=%DESTPATH%\office
+SET LOCALUNPACKDIR=%DESTPATH%\unpack
+
+call perl5 %SOLARENV%\bin\installoffice.pl -dest %LOCALINSTALLDIR% -debug %DEBUG% -ooo %OOO% -cleanup true %&
+
+quit 0
+
+:usage
+ echo.
+ echo Usage: %0% [-t DESTPATH] [-o] [-d] >&2
+ echo.
+ echo [-d] installation with debug output>&2
+ echo.
+ echo [-o] force OpenOffice.org installation instead of StarOffice>&2
+ echo.
+ echo [-t] target path: path wehre tho office should installed to. The default is '%DESTPATH%'>&2
+ echo.
+ quit 1