Skip to content

Commit 010d578

Browse files
committed
Implement separate changelog custom build command
- Change patch keyword to not be a comment
1 parent 3cd9117 commit 010d578

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

hlp/changelog_shell.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<div class="markdown-body">
2828
<!-- if you can't see the HTML, it may have not been inserted yet. -->
29-
<!-- INSERT-CHANGELOG-HERE -->
29+
PATCH CHANGELOG HERE
3030
</div>
3131

3232
<hr>

hlp/hlp.vcxproj

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,65 @@ echo.</Command>
396396
<None Include="changelog.htm">
397397
<DeploymentContent>true</DeploymentContent>
398398
</None>
399+
<CustomBuild Include="changelog_shell.htm">
400+
<DeploymentContent>true</DeploymentContent>
401+
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
402+
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Updating changelog.htm.</Message>
403+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
404+
<Command Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
405+
<Message Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">Updating changelog.htm.</Message>
406+
<Outputs Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
407+
<Command Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
408+
<Message Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">Updating changelog.htm.</Message>
409+
<Outputs Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
410+
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
411+
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Updating changelog.htm.</Message>
412+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
413+
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
414+
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Updating changelog.htm.</Message>
415+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
416+
<Command Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
417+
<Message Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">Updating changelog.htm.</Message>
418+
<Outputs Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
419+
<Command Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
420+
<Message Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">Updating changelog.htm.</Message>
421+
<Outputs Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
422+
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">powershell -Command "(Get-Content $(SolutionDir)Dn-help\hlp\changelog_shell.htm).Replace('PATCH CHANGELOG HERE', (pandoc $(SolutionDir)docs/CHANGELOG.md -f gfm -t html5)) | Set-Content -encoding UTF8 $(SolutionDir)Dn-help\hlp\changelog.htm"</Command>
423+
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Updating changelog.htm.</Message>
424+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)changelog.htm;%(Outputs)</Outputs>
425+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BuildInParallel>
426+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">true</BuildInParallel>
427+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">true</BuildInParallel>
428+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</BuildInParallel>
429+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BuildInParallel>
430+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">true</BuildInParallel>
431+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">true</BuildInParallel>
432+
<BuildInParallel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</BuildInParallel>
433+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
434+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">true</DeploymentContent>
435+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">true</DeploymentContent>
436+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
437+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
438+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">true</DeploymentContent>
439+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">true</DeploymentContent>
440+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
441+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkObjects>
442+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</TreatOutputAsContent>
443+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">false</LinkObjects>
444+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|Win32'">true</TreatOutputAsContent>
445+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">false</LinkObjects>
446+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|Win32'">true</TreatOutputAsContent>
447+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkObjects>
448+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</TreatOutputAsContent>
449+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkObjects>
450+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</TreatOutputAsContent>
451+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">false</LinkObjects>
452+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Debug|x64'">true</TreatOutputAsContent>
453+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">false</LinkObjects>
454+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='ASAN-Release|x64'">true</TreatOutputAsContent>
455+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkObjects>
456+
<TreatOutputAsContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</TreatOutputAsContent>
457+
</CustomBuild>
399458
<None Include="command_line.htm">
400459
<DeploymentContent>true</DeploymentContent>
401460
</None>

hlp/hlp.vcxproj.filters

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
<CustomBuild Include="Dn-FamiTracker.hhp">
222222
<Filter>HTML Help Files</Filter>
223223
</CustomBuild>
224+
<CustomBuild Include="changelog_shell.htm" />
224225
</ItemGroup>
225226
<ItemGroup>
226227
<Image Include="img\bookmark_manager.png">

0 commit comments

Comments
 (0)