Changeset 23653 for gs2-extensions


Ignore:
Timestamp:
2011-02-01T22:35:25+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/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%
Note: See TracChangeset for help on using the changeset viewer.