Changeset 1306


Ignore:
Timestamp:
Apr 29, 2012, 5:32:02 PM (9 years ago)
Author:
sam
Message:

build: fix for a fucking batch file limitation that won't let me iterate
through a list of files containing spaces or parens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/win32/Lol.Rules.props

    r1210 r1306  
    4949    <!-- FIXME: not for the static library! -->
    5050    <PostBuildEvent Condition="'$(Platform)'=='Win32'">
    51       <Command>for %%I in ($(SdlLibs)) do xcopy /y /c /d %%I\*.dll "$(TargetDir)"</Command>
     51      <Command>
     52        set A=$(SdlLibs)
     53        :again
     54        for /f "tokens=1* delims=;" %%I in ("%A%") do (
     55          if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
     56          if not "%%I" == "" goto again
     57        )
     58      </Command>
    5259    </PostBuildEvent>
    5360    <PostBuildEvent Condition="'$(Platform)'=='x64'">
    54       <Command>for %%I in ($(SdlLibs)) do xcopy /y /c /d %%I\*.dll "$(TargetDir)"</Command>
     61      <Command>
     62        set A=$(SdlLibs)
     63        :again
     64        for /f "tokens=1* delims=;" %%I in ("%A%") do (
     65          if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
     66          if not "%%I" == "" goto again
     67        )
     68      </Command>
    5569    </PostBuildEvent>
    5670
Note: See TracChangeset for help on using the changeset viewer.