Show
Ignore:
Timestamp:
01.02.2011 22:35:32 (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/open-office/trunk/src/setup.bat

    r23227 r23654  
    4242set extdir=%extdir:\=% 
    4343 
     44setlocal enabledelayedexpansion 
    4445if "x%GSDLEXTS%" == "x" ( 
    45   set GSDLEXTS=%extdir% 
     46  set GSDLEXTS=!extdir! 
    4647) else ( 
    47   set GSDLEXTS=%GSDLEXTS%:%extdir% 
     48  set GSDLEXTS=!GSDLEXTS!:!extdir! 
    4849) 
     50endlocal & set GSDLEXTS=%GSDLEXTS% 
    4951 
    5052echo +Your environment is now setup for %extdesc%