Last change
on this file since 23036 was 23036, checked in by sjm84, 14 years ago |
The video extension now uses the new folder layout
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[18983] | 1 | @echo off
|
---|
| 2 | pushd "%CD%"
|
---|
| 3 | CD /D "%~dp0"
|
---|
| 4 | set GSDLLANG=en
|
---|
[22776] | 5 | set extdesc="the Video and Audio Extension"
|
---|
[18983] | 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 GEXTVIDEO=%CD%
|
---|
[21173] | 17 | set GEXTVIDEO_INSTALLED=%GEXTVIDEO%\windows
|
---|
[18983] | 18 |
|
---|
[21173] | 19 | set PATH=%GEXTVIDEO_INSTALLED%\bin;%PATH%
|
---|
[18983] | 20 | set GS_CP_SET=yes
|
---|
| 21 | goto Success
|
---|
| 22 |
|
---|
| 23 | :Win95
|
---|
| 24 | if "%1" == "SetEnv" goto Win95Env
|
---|
| 25 | REM We'll invoke a second copy of the command processor to make
|
---|
| 26 | REM sure there's enough environment space
|
---|
| 27 | COMMAND /E:2048 /K %0 SetEnv
|
---|
| 28 | goto End
|
---|
| 29 |
|
---|
| 30 | :Win95Env
|
---|
| 31 | set GEXTVIDEO=%CD%
|
---|
[21173] | 32 | set PATH="%GEXTVIDEO_INSTALLED%\bin";"%PATH%"
|
---|
[18983] | 33 | set GS_CP_SET=yes
|
---|
| 34 | goto Success
|
---|
| 35 |
|
---|
| 36 | :Success
|
---|
| 37 |
|
---|
[22776] | 38 | set fulldir=%~dp0
|
---|
| 39 |
|
---|
| 40 | :: strip off everything up to (and including) ext dir
|
---|
| 41 | set extdir=%fulldir:*ext\=%
|
---|
| 42 |
|
---|
| 43 | :: remove trailing slash
|
---|
| 44 | set extdir=%extdir:\=%
|
---|
| 45 |
|
---|
| 46 |
|
---|
[18983] | 47 | if "x%GSDLEXTS%" == "x" (
|
---|
[22776] | 48 | set GSDLEXTS=%extdir%
|
---|
[18983] | 49 | ) else (
|
---|
[22776] | 50 | set GSDLEXTS=%GSDLEXTS%:%extdir%
|
---|
[18983] | 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.