root/gs3-extensions/solr/trunk/src/gs3-setup.bat @ 26510

Revision 26510, 1.8 KB (checked in by davidb, 7 years ago)

Fixed small typo in file

Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5set extdesc=the Solr Extension
6
7:: The port Jetty runs on:
8set SOLR_JETTY_PORT=8983
9
10:: The port Jetty listens on for a "stop" command
11set JETTY_STOP_PORT=8079
12
13if "%OS%" == "Windows_NT" goto WinNT
14if "%OS%" == "" goto Win95
15if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
16if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
17if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
18if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ ã€ « áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
19goto End
20
21:WinNT
22set GEXT_SOLR=%CD%
23set PATH=%GEXT_SOLR%\bin\script;%PATH%
24set PATH=%GEXT_SOLR%\lib;%PATH%
25set GS_CP_SET=yes
26goto Success
27
28:Win95
29if "%1" == "SetEnv" goto Win95Env
30REM We'll invoke a second copy of the command processor to make
31REM sure there's enough environment space
32COMMAND /E:2048 /K %0 SetEnv
33goto End
34
35:Win95Env
36set GEXT_SOLR=%CD%
37set PATH="%GEXT_SOLR%\bin\script";"%PATH%"
38set PATH="%GEXT_SOLR%\lib";"%PATH%"
39set GS_CP_SET=yes
40goto Success
41
42:Success
43
44set fulldir=%~dp0
45
46:: strip off everything up to (and including) ext dir
47set extdir=%fulldir:*ext\=%
48
49:: remove trailing slash
50set extdir=%extdir:\=%
51
52setlocal enabledelayedexpansion
53if "x%GSDL3EXTS%" == "x" (
54  set GSDL3EXTS=!extdir!
55) else (
56  set GSDL3EXTS=!GSDL3EXTS!:!extdir!
57)
58endlocal & set GSDL3EXTS=%GSDL3EXTS%
59
60echo +Your environment is now setup for %extdesc%
61
62:: Back to delayed expansion to avoid problems with environment
63:: variables with brackets in them, such as "Program Files (x86)"
64
65echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command)"
66echo --These port values can be changed by editing:
67echo --  %0
68
69
70
71:End
72
73popd
Note: See TracBrowser for help on using the browser.