source: gs2-extensions/open-office/trunk/src/setup.bat@ 25218

Last change on this file since 25218 was 25218, checked in by ak19, 12 years ago
  1. Cleaning up refs to the JODCONVERTER_PORT env var which has been phased out since it ought to be the same as SOFFICE_PORT to which it should connect. 2. The GLI OpenOffice extension plugin provides the option of changing the listening port. If changed, this change was previously not being transmitted to the actual command being run. This should now be the case, still requires testing.
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5:: Edit and uncomment the following environment variables if you want to customise the
6:: location of your OpenOffice installation or what host or port it should be run with.
7:: You can also set the port that jodconverter uses to connect to OpenOffice.
8:: If this is (also) a remote Greenstone server, you will (also) want to edit the file
9:: gsdlsite.cfg in your Greenstone installation's cgi-bin folder.
10
11:: set SOFFICE_HOME=C:\Program Files\OpenOffice.org 3\program
12:: set SOFFICE_HOST=localhost
13:: set SOFFICE_PORT=8100
14
15
16set extdesc=the OpenOffice Extension
17
18if "%OS%" == "Windows_NT" goto WinNT
19if "%OS%" == "" goto Win95
20if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
21if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
22if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
23if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ ã€ « áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
24goto End
25
26:WinNT
27set GEXT_OPENOFFICE=%CD%
28set PATH=%GEXT_OPENOFFICE%\bin\script;%PATH%
29set GS_CP_SET=yes
30goto Success
31
32:Win95
33if "%1" == "SetEnv" goto Win95Env
34REM We'll invoke a second copy of the command processor to make
35REM sure there's enough environment space
36COMMAND /E:2048 /K %0 SetEnv
37goto End
38
39:Win95Env
40set GEXT_OPENOFFICE=%CD%
41set PATH="%GEXT_OPENOFFICE%\bin\script";"%PATH%"
42set GS_CP_SET=yes
43goto Success
44
45:Success
46
47set fulldir=%~dp0
48
49:: strip off everything up to (and including) ext dir
50set extdir=%fulldir:*ext\=%
51
52:: remove trailing slash
53set extdir=%extdir:\=%
54
55setlocal enabledelayedexpansion
56if "x%GSDLEXTS%" == "x" (
57 set GSDLEXTS=!extdir!
58) else (
59 set GSDLEXTS=!GSDLEXTS!:!extdir!
60)
61endlocal & set GSDLEXTS=%GSDLEXTS%
62
63echo +Your environment is now setup for %extdesc%
64
65:: Back to delayed expansion to avoid problems with environment
66:: variables with brackets in them, such as "Program Files (x86)"
67
68
69:End
70
71popd
Note: See TracBrowser for help on using the repository browser.