Use 7z wildcards to zip tree
Using msbuild/xbuild wildcards results in different behavior between the two implementations. Since we require 7z anyway, it is simpler if we just use that directly.
This commit is contained in:
parent
e181d14f69
commit
46090a4492
1 changed files with 1 additions and 12 deletions
|
@ -49,14 +49,8 @@
|
|||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<Target Name="Build">
|
||||
<CallTarget Targets="CleanTreeCopy" />
|
||||
<!-- Make a clean copy of the source tree -->
|
||||
<CreateItem Include="$(InputPath)**\*.*" Exclude="$(InputPath)**\.svn\**\*.*;
 $(InputPath)**\obj\**\*.*;
 $(InputPath)Installers\Zip\opentk\**\*.*;
 $(InputPath)Documentation\Source\**\*.*;
 $(InputPath)Automation\**\*.*;
 $(InputPath)Old\**\*.*;
 $(InputPath)**\OpenTK*.xml;
 $(InputPath)**\*.suo;
 $(InputPath)**\*.pidb;
 $(InputPath)**\*.userprefs;
 $(InputPath)**\opentk*.zip;
 $(InputPath)**\opentk*.exe;
 $(InputPath)**\vshost*.exe;
 ">
|
||||
<Output TaskParameter="Include" ItemName="FileList" />
|
||||
</CreateItem>
|
||||
<Copy SourceFiles="@(FileList)" DestinationFiles="@(FileList->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<!-- Zip the copy of the source tree -->
|
||||
<Exec Command="7z a -tzip opentk.zip $(OutputPath)" />
|
||||
<Exec Command="7z a -tzip opentk.zip ../../* '-xr!opentk*.zip' '-xr!opentk*.exe' '-xr!.*' '-xr!obj' '-xr!Documentation/Source' '-xr!Automation' '-xr!*.suo' '-xr!*.pidb' '-xr!*.userprefs' '-xr!vshost*.exe'" />
|
||||
<!-- Copy the zip file to the root directory and add a date stamp -->
|
||||
<ReadLinesFromFile File="../../Version.txt">
|
||||
<Output TaskParameter="Lines" ItemName="Version" />
|
||||
|
@ -68,14 +62,9 @@
|
|||
<Output TaskParameter="Include" ItemName="FilesToDelete" />
|
||||
</CreateItem>
|
||||
<Delete Files="@(FilesToDelete)" />
|
||||
<CallTarget Targets="CleanTreeCopy" />
|
||||
</Target>
|
||||
<Target Name="Rebuild">
|
||||
<CallTarget Targets="Clean" />
|
||||
<CallTarget Targets="Build" />
|
||||
</Target>
|
||||
<Target Name="CleanTreeCopy">
|
||||
<RemoveDir Directories="$(OutputPath)" Condition="$(OS) == 'Windows_NT'" />
|
||||
<Exec Command="rm -rf '$(OutputPath)'" Condition="$(OS) != 'Windows_NT'" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue