source: gs2-extensions/afrepo/trunk/src/gs3-setup.bat@ 27339

Last change on this file since 27339 was 27255, checked in by davidb, 11 years ago

First cut as files for this extension

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5set extdesc=the afrepo (audio fingerprinting) 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_AFREPO=%CD%
17set PATH=%GEXT_AFREPO%\bin\script;%PATH%
18set PATH=%GEXT_AFREPO%\bin\windows;%PATH%
19set PATH=%GEXT_AFREPO%\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_AFREPO=%CD%
32set PATH="%GEXT_AFREPO%\bin\script";"%PATH%"
33set PATH="%GEXT_AFREPO%\bin\windows";"%PATH%"
34set PATH="%GEXT_AFREPO%\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%GSDLEXTS%" == "x" (
50 set GSDLEXTS=!extdir!
51) else (
52 set GSDLEXTS=!GSDLEXTS!:!extdir!
53)
54endlocal & set GSDLEXTS=%GSDLEXTS%
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.