root/gs2-extensions/tika/trunk/setup.bat @ 22690

Revision 22690, 1.4 KB (checked in by sjm84, 9 years ago)

Adding the initial content for the Tika extension

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