File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 96
96
<_LicenseSources Include =" $(tcltkDir)tcllicense.terms;
97
97
$(tcltkDir)tklicense.terms;
98
98
$(tcltkDir)tixlicense.terms" Condition =" $(IncludeTkinter)" />
99
- <_LicenseOutputs Include =" $(OutDir)LICENSE.txt" />
100
99
</ItemGroup >
101
100
102
101
<Target Name =" _RegenTestFrozenmain" Inputs =" @(_TestFrozenSources)" Outputs =" @(_TestFrozenOutputs)"
106
105
WorkingDirectory =" $(PySourcePath)" />
107
106
</Target >
108
107
109
- <Target Name =" _RegenLicense" Inputs =" @(_LicenseSources)" Outputs =" @(_LicenseOutputs)" >
110
- <Message Text =" Regenerate @(_LicenseOutputs->'%(Filename)%(Extension)', ' ')" Importance =" high" />
108
+ <Target Name =" _RegenLicense" >
111
109
<ItemGroup >
112
- <_Text Include =" @(_LicenseFiles )" >
110
+ <_Text1 Include =" @(_LicenseSources )" >
113
111
<Content Condition =" Exists(%(FullPath))" >$([System.IO.File]::ReadAllText(%(FullPath)))</Content >
114
- </_Text >
112
+ </_Text1 >
113
+ <_Text Include =" @(_Text1->'%(Content)')" />
115
114
</ItemGroup >
116
115
117
- <WriteLinesToFile File =" @(_LicenseOutputs)" Overwrite =" true" Lines =" @(_Text->'%(Content)')" />
116
+ <WriteLinesToFile File =" $(OutDir)LICENSE.txt" Overwrite =" true" Lines =" @(_Text)" />
117
+ <Warning Text =" License file %(_LicenseSources.FullPath) is missing"
118
+ Condition =" !Exists(@(_LicenseSources))" />
119
+ <Message Text =" Wrote $(OutDir)LICENSE.txt" Importance =" high" />
118
120
</Target >
119
121
120
- <Target Name =" PostBuildRegen" DependsOnTargets =" _RegenTestFrozenmain;_RegenLicense" >
121
- <Message Text =" Other generated files are up to date" Importance =" high" />
122
- </Target >
122
+ <Target Name =" PostBuildRegen" DependsOnTargets =" _RegenTestFrozenmain;_RegenLicense" />
123
123
</Project >
You can’t perform that action at this time.
0 commit comments