This repository was archived by the owner on Feb 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +27
-8
lines changed Expand file tree Collapse file tree 5 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 182
182
</ItemGroup >
183
183
<Import Project =" $(MSBuildBinPath)\Microsoft.CSharp.targets" />
184
184
<PropertyGroup >
185
- <PreBuildEvent >
186
- </PreBuildEvent >
187
- <PostBuildEvent >copy "$(ProjectDir)..\..\tools\cm17a\cm17a.exe" "$(TargetDir)"</PostBuildEvent >
185
+ <PostBuildEvent Condition =" '$(OS)' != 'Unix' " >
186
+ copy "$(ProjectDir)..\..\tools\cm17a\cm17a.exe" "$(TargetDir)"
187
+ </PostBuildEvent >
188
+ <PostBuildEvent Condition =" '$(OS)' == 'Unix' " >
189
+ cp "$(ProjectDir)../../tools/cm17a/cm17a.exe" "$(TargetDir)"
190
+ </PostBuildEvent >
188
191
</PropertyGroup >
189
192
</Project >
Original file line number Diff line number Diff line change 133
133
</Target>
134
134
-->
135
135
<PropertyGroup >
136
- <PostBuildEvent >if not "$(ConfigurationName)" == "Build" xcopy /Y "$(TargetPath)" "$(SolutionDir)console\bin\$(ConfigurationName)\"</PostBuildEvent >
136
+ <PostBuildEvent Condition =" '$(OS)' != 'Unix' " >
137
+ if not "$(ConfigurationName)" == "Build" xcopy /Y "$(TargetPath)" "$(SolutionDir)console/bin/$(ConfigurationName)/"
138
+ </PostBuildEvent >
139
+ <PostBuildEvent Condition =" '$(OS)' == 'Unix' " >
140
+ if [ "$(ConfigurationName)" != "Build" ]; then
141
+ cp "$(TargetPath)" "$(SolutionDir)console/bin/$(ConfigurationName)/"
142
+ fi
143
+ </PostBuildEvent >
137
144
</PropertyGroup >
138
145
</Project >
Original file line number Diff line number Diff line change 1455
1455
</ItemGroup >
1456
1456
<Import Project =" $(MSBuildBinPath)\Microsoft.CSharp.targets" />
1457
1457
<PropertyGroup >
1458
- <PreBuildEvent >mkdir "$(TargetDir)xsl"
1458
+ <PreBuildEvent Condition = " '$(OS)' != 'Unix' " >mkdir "$(TargetDir)xsl"
1459
1459
copy "$(ProjectDir)test.config" "$(TargetPath).config"
1460
1460
xcopy /y/q "$(SolutionDir)\xsl\*.*" "$(TargetDir)xsl"
1461
1461
xcopy "$(ProjectDir)\resources\*.*" "$(TargetDir)" /S /Y /Q
1462
1462
copy "$(ProjectDir)..\..\tools\sleeper.exe" "$(TargetDir)"</PreBuildEvent >
1463
+ <PreBuildEvent Condition =" '$(OS)' == 'Unix' " >mkdir -p "$(TargetDir)xsl"
1464
+ cp "$(ProjectDir)test.config" "$(TargetPath).config"
1465
+ cp "$(SolutionDir)xsl"/* "$(TargetDir)xsl"
1466
+ cp -R "$(ProjectDir)resources"/* "$(TargetDir)"
1467
+ cp "$(ProjectDir)../../Tools/sleeper.exe" "$(TargetDir)"</PreBuildEvent >
1463
1468
<PostBuildEvent >
1464
1469
</PostBuildEvent >
1465
1470
</PropertyGroup >
1466
- </Project >
1471
+ </Project >
Original file line number Diff line number Diff line change 933
933
<PropertyGroup >
934
934
<PreBuildEvent >
935
935
</PreBuildEvent >
936
- <PostBuildEvent >mkdir "$(ProjectDir)\xsl"
936
+ <PostBuildEvent Condition = " '$(OS)' != 'Unix' " >mkdir "$(ProjectDir)\xsl"
937
937
xcopy/y/q "$(SolutionDir)\xsl\*.xsl" "$(ProjectDir)\xsl"</PostBuildEvent >
938
+ <PostBuildEvent Condition =" '$(OS)' == 'Unix' " >mkdir -p "$(ProjectDir)xsl"
939
+ cp "$(SolutionDir)xsl"/* "$(ProjectDir)xsl"</PostBuildEvent >
938
940
</PropertyGroup >
939
941
<ProjectExtensions >
940
942
<VisualStudio >
Original file line number Diff line number Diff line change 1215
1215
<PropertyGroup >
1216
1216
<PreBuildEvent >
1217
1217
</PreBuildEvent >
1218
- <PostBuildEvent >mkdir "$(TargetDir)xsl"
1218
+ <PostBuildEvent Condition = " '$(OS)' != 'Unix' " >mkdir "$(TargetDir)xsl"
1219
1219
xcopy /q /y "$(SolutionDir)\xsl\*.*" "$(TargetDir)xsl"</PostBuildEvent >
1220
+ <PostBuildEvent Condition =" '$(OS)' == 'Unix' " >mkdir -p "$(TargetDir)xsl"
1221
+ cp "$(SolutionDir)xsl"/* "$(TargetDir)xsl"</PostBuildEvent >
1220
1222
</PropertyGroup >
1221
1223
</Project >
You can’t perform that action at this time.
0 commit comments