source: gs2-extensions/music-ir-src/trunk/setup.bat@ 29659

Last change on this file since 29659 was 22435, checked in by davidb, 14 years ago

Fixed issue with quotes around fulldir

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5set extdesc=the Music IR 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_MUSICIR=%CD%
17set GEXT_MUSICIR_INSTALLED=%GEXT_MUSICIR%\windows
18
19set PATH=%GEXT_MUSICIR_INSTALLED%\bin;%GEXT_MUSICIR%\bin\script;%PATH%
20
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 GEXT_MUSICIR=%CD%
33set PATH=%GEXT_MUSICIR_INSTALLED%\bin;%GEXT_MUSICIR%\bin\script;%PATH%
34set GS_CP_SET=yes
35goto Success
36
37:Success
38
39set fulldir=%~dp0
40
41:: strip off everything up to (and including) ext dir
42set extdir=%fulldir:*ext\=%
43
44:: remove trailing slash
45set extdir=%extdir:\=%
46
47if "x%GSDLEXTS%" == "x" (
48 set GSDLEXTS=%extdir%
49) else (
50 set GSDLEXTS=%GSDLEXTS%:%extdir%
51)
52
53echo +Your environment is now setup for %extdesc%
54
55:End
56
57popd
Note: See TracBrowser for help on using the repository browser.