source: gs3-extensions/fedora/trunk/src/gs3-setup.bat@ 26434

Last change on this file since 26434 was 26412, checked in by ak19, 11 years ago

Adding Greenstone 3 setup files for the fedora extension since that's how we usually set up extension environments.

File size: 1.7 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5set extdesc=the GS3 Fedora (with GSearch) 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 FEDORA_HOME=%CD%
17set GEXT_FEDORA=%FEDORA_HOME%
18set FEDORA_VERSION=3
19set PATH=%FEDORA_HOME%\server\bin;%PATH%
20set PATH=%FEDORA_HOME%\client\bin;%PATH%
21set GS_CP_SET=yes
22goto Success
23
24:Win95
25if "%1" == "SetEnv" goto Win95Env
26REM We'll invoke a second copy of the command processor to make
27REM sure there's enough environment space
28COMMAND /E:2048 /K %0 SetEnv
29goto End
30
31:Win95Env
32set FEDORA_HOME=%CD%
33set GEXT_FEDORA=%FEDORA_HOME%
34set FEDORA_VERSION=3
35set PATH=%FEDORA_HOME%\server\bin;%PATH%
36set PATH=%FEDORA_HOME%\client\bin;%PATH%
37set GS_CP_SET=yes
38goto Success
39
40:Success
41
42set fulldir=%~dp0
43
44:: strip off everything up to (and including) ext dir
45set extdir=%fulldir:*ext\=%
46
47:: remove trailing slash
48set extdir=%extdir:\=%
49
50setlocal enabledelayedexpansion
51if "x%GSDL3EXTS%" == "x" (
52 set GSDL3EXTS=!extdir!
53) else (
54 set GSDL3EXTS=!GSDL3EXTS!:!extdir!
55)
56endlocal & set GSDL3EXTS=%GSDL3EXTS%
57
58echo +Your environment is now setup for %extdesc%
59
60:: Back to delayed expansion to avoid problems with environment
61:: variables with brackets in them, such as "Program Files (x86)"
62
63
64:End
65
66popd
Note: See TracBrowser for help on using the repository browser.