Skip to content

Commit

Permalink
Treat rdfind as optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds committed May 26, 2023
1 parent 80b279d commit 7e3b49c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/redist/targets/GenerateLayout.targets
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,13 @@
and the corresponding shared frameworks are included in a distro package their data is shared instead of duplicated. -->
<Target Name="ReplaceDuplicateFilesWithHardLinks" DependsOnTargets="LayoutBundledComponents"
Condition="'$(BundleRuntimePacks)' == 'true'">
<Exec Command="rdfind -makehardlinks true -makeresultsfile false '$(RedistLayoutPath)'" />
<Exec Command="rdfind --help" StandardOutputImportance="low" StandardErrorImportance="low" ContinueOnError="True">
<Output TaskParameter="ExitCode" PropertyName="RdFindInfoExitCode" />
</Exec>

<Warning Text="rdfind is not available to make hard links." Condition="'$(RdFindInfoExitCode)' != '0'" />

<Exec Command="rdfind -makehardlinks true -makeresultsfile false '$(RedistLayoutPath)'" Condition="'$(RdFindInfoExitCode)' == '0'" />
</Target>

<Target Name="GenerateLayout"
Expand Down

0 comments on commit 7e3b49c

Please sign in to comment.