Last change
on this file since 31992 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
|
---|
2 | pushd "%CD%"
|
---|
3 | CD /D "%~dp0"
|
---|
4 |
|
---|
5 | set extdesc=the Music IR Extension
|
---|
6 |
|
---|
7 | if "%OS%" == "Windows_NT" goto WinNT
|
---|
8 | if "%OS%" == "" goto Win95
|
---|
9 | if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
|
---|
10 | if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
|
---|
11 | if "%GSDLLANG%" == "fr" echo Echc de l'installation - votre variable PATH n'a pas t ajuste
|
---|
12 | if "%GSDLLANG%" == "ru" echo áâ ®¢ª ¥ 〠« áì - ¥ ¡ë« ãáâ ®¢«¥
|
---|
13 | goto End
|
---|
14 |
|
---|
15 | :WinNT
|
---|
16 | set GEXT_MUSICIR=%CD%
|
---|
17 | set GEXT_MUSICIR_INSTALLED=%GEXT_MUSICIR%\windows
|
---|
18 |
|
---|
19 | set PATH=%GEXT_MUSICIR_INSTALLED%\bin;%GEXT_MUSICIR%\bin\script;%PATH%
|
---|
20 |
|
---|
21 | set GS_CP_SET=yes
|
---|
22 | goto Success
|
---|
23 |
|
---|
24 | :Win95
|
---|
25 | if "%1" == "SetEnv" goto Win95Env
|
---|
26 | REM We'll invoke a second copy of the command processor to make
|
---|
27 | REM sure there's enough environment space
|
---|
28 | COMMAND /E:2048 /K %0 SetEnv
|
---|
29 | goto End
|
---|
30 |
|
---|
31 | :Win95Env
|
---|
32 | set GEXT_MUSICIR=%CD%
|
---|
33 | set PATH=%GEXT_MUSICIR_INSTALLED%\bin;%GEXT_MUSICIR%\bin\script;%PATH%
|
---|
34 | set GS_CP_SET=yes
|
---|
35 | goto Success
|
---|
36 |
|
---|
37 | :Success
|
---|
38 |
|
---|
39 | set fulldir=%~dp0
|
---|
40 |
|
---|
41 | :: strip off everything up to (and including) ext dir
|
---|
42 | set extdir=%fulldir:*ext\=%
|
---|
43 |
|
---|
44 | :: remove trailing slash
|
---|
45 | set extdir=%extdir:\=%
|
---|
46 |
|
---|
47 | if "x%GSDLEXTS%" == "x" (
|
---|
48 | set GSDLEXTS=%extdir%
|
---|
49 | ) else (
|
---|
50 | set GSDLEXTS=%GSDLEXTS%:%extdir%
|
---|
51 | )
|
---|
52 |
|
---|
53 | echo +Your environment is now setup for %extdesc%
|
---|
54 |
|
---|
55 | :End
|
---|
56 |
|
---|
57 | popd |
---|
Note:
See
TracBrowser
for help on using the repository browser.