Show
Ignore:
Timestamp:
01.02.2011 22:35:25 (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/pdf-box/trunk/java/setup.bat

    r23033 r23653  
    4444set extdir=%extdir:\=% 
    4545 
     46setlocal enabledelayedexpansion 
    4647if "x%GSDLEXTS%" == "x" ( 
    47   set GSDLEXTS=%extdir% 
     48  set GSDLEXTS=!extdir! 
    4849) else ( 
    49   set GSDLEXTS=%GSDLEXTS%:%extdir% 
     50  set GSDLEXTS=!GSDLEXTS!:!extdir! 
    5051) 
     52endlocal & set GSDLEXTS=%GSDLEXTS% 
    5153 
    5254echo +Your environment is now setup for %extdesc%