Changeset 23655

Show
Ignore:
Timestamp:
01.02.2011 22:35:36 (9 years ago)
Author:
ak19
Message:

Sam had discovered that env variables in Win Batch files that occur inside round brackets of if-else stmts need to be using setdelayedexpansion (where exclamation marks replace percent signs). Updated this for 3 setup.bat files in the extensions folder.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/video-and-audio/trunk/src/setup.bat

    r23036 r23655  
    4545 
    4646 
     47setlocal enabledelayedexpansion 
    4748if "x%GSDLEXTS%" == "x" ( 
    48   set GSDLEXTS=%extdir% 
     49  set GSDLEXTS=!extdir! 
    4950) else ( 
    50   set GSDLEXTS=%GSDLEXTS%:%extdir% 
     51  set GSDLEXTS=!GSDLEXTS!:!extdir! 
    5152) 
     53endlocal & set GSDLEXTS=%GSDLEXTS% 
    5254 
    5355echo +Your environment is now setup for %extdesc%