source: gs3-extensions/hugin/trunk/src/gs3-setup.bat@ 26862

Last change on this file since 26862 was 26803, checked in by davidb, 11 years ago

Initial cut at Hugin extension.

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