Ignore:
Timestamp:
2011-02-01T22:35:32+13:00 (13 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.

File:
1 edited

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%
Note: See TracChangeset for help on using the changeset viewer.