Skip to content

Commit

Permalink
Merge the history files before the feed is generated from History.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
rseanhall committed May 28, 2015
1 parent 70321c5 commit adf540f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
52 changes: 28 additions & 24 deletions tools/WixBuild.relproj.targets
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,47 @@

</Target>

<!--
================================================================================================
TransformHistoryEntries
Converts history files into entries in a project's History.md.
================================================================================================
-->
<PropertyGroup>
<TransformHistoryEntriesDependsOn>
</TransformHistoryEntriesDependsOn>
</PropertyGroup>
<Target Name="TransformHistoryEntries"
DependsOnTargets="$(TransformHistoryEntriesDependsOn)">
<TransformHistoryEntries
ProjectFolder="$(ProjectFolder)"
HistoryFolderRelativePath="$(HistoryFolderRelativePath)"
HistoryFile="$(HistoryFile)"
SpecialHistoryFileName="$(SpecialHistoryFileName)" />
</Target>

<!--
================================================================================================
GenerateReleaseMetadata
Generates a .json class file from input files to be Releaseed.
Generates a .json class file from input files to be Released.
[IN]
$(HistoryFile) - The history.txt file in the root.
@(ReleaseFiles) - The items to add to the metadata.
$(ProjectFolder) - The root project folder.
$(HistoryFolderRelativePath) - The relative path to the folder with the history files.
$(HistoryFile) - The history.md file in the root.
$(SpecialHistoryFileName) - The name of the history readme file.
@(ReleaseFile) - The items to add to the metadata.
[OUT]
@(ReleaseMetadata) - The generated .json and .md metadata file.
================================================================================================
-->
<PropertyGroup>
<GenerateReleaseMetadataDependsOn>
TransformHistoryEntries
</GenerateReleaseMetadataDependsOn>
<ReleaseInfoFile>$(ReleaseMetadataFolder)v$(FullBuildVersionStringDashed).json</ReleaseInfoFile>
<ReleaseHistoryFile>$(ReleaseMetadataFolder)v$(FullBuildVersionStringDashed).html.md</ReleaseHistoryFile>
Expand Down Expand Up @@ -212,25 +237,4 @@
</ReleasedFiles>
</ItemGroup>
</Target>

<!--
================================================================================================
TransformHistoryEntries
Converts history files into entries in a project's History.md.
================================================================================================
-->
<PropertyGroup>
<TransformHistoryEntriesDependsOn>
</TransformHistoryEntriesDependsOn>
</PropertyGroup>
<Target Name="TransformHistoryEntries"
DependsOnTargets="$(TransformHistoryEntriesDependsOn)">
<TransformHistoryEntries
ProjectFolder="$(ProjectFolder)"
HistoryFolderRelativePath="$(ProjectHistoryFolderRelativePath)"
HistoryFile="$(ProjectHistoryFile)"
SpecialHistoryFileName="$(SpecialHistoryFileName)" />
</Target>
</Project>
6 changes: 1 addition & 5 deletions tools/release/WixBuildRelease.proj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
-->
<Target Name="BuildProject">
<MSBuild Projects="$(ProjectFolder)\tools\WixRelease.relproj"
Properties="OFFICIAL_WIX_BUILD=$(OfficialBuildPrivateKeyPair)"
Properties="OFFICIAL_WIX_BUILD=$(OfficialBuildPrivateKeyPair);ProjectFolder=$(ProjectFolder);HistoryFolderRelativePath=$(ProjectHistoryFolderRelativePath);HistoryFile=$(ProjectHistoryFile);SpecialHistoryFileName=$(SpecialHistoryFileName)"
Targets="Build" />
</Target>

Expand Down Expand Up @@ -92,10 +92,6 @@
Condition=" $(SkipUpdateHistory)=='' "
DependsOnTargets="GetVersionNumber">

<MSBuild Projects="$(ProjectFolder)\tools\WixRelease.relproj"
Properties="OFFICIAL_WIX_BUILD=$(OfficialBuildPrivateKeyPair);ProjectFolder=$(ProjectFolder);ProjectHistoryFolderRelativePath=$(ProjectHistoryFolderRelativePath);ProjectHistoryFile=$(ProjectHistoryFile);SpecialHistoryFileName=$(SpecialHistoryFileName)"
Targets="TransformHistoryEntries" />

<Exec Command="cscript $(MSBuildThisFileDirectory)histver.js $(ProjectHistoryFile) $(Version) //nologo"
WorkingDirectory="$(ProjectFolder)" />
</Target>
Expand Down

0 comments on commit adf540f

Please sign in to comment.