This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
forked from Protobuild/Protobuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automated.build
56 lines (54 loc) · 4.09 KB
/
automated.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#version 1
set build-target Rebuild
set build-property Configuration Release
set execute-configuration Release
generate
build
if host Windows
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerateProject.CSharp.xslt Protobuild.Internal\BuildResources\GenerateProject.CSharp.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.MonoDevelop.xslt Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.MonoDevelop.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.VisualStudio.xslt Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.VisualStudio.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.MonoDevelop.xslt Protobuild.Internal\BuildResources\GenerateProject.CPlusPlus.MonoDevelop.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerateSolution.xslt Protobuild.Internal\BuildResources\GenerateSolution.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\NuGetPlatformMappings.xml Protobuild.Internal\BuildResources\NuGetPlatformMappings.xml.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\SelectSolution.xslt Protobuild.Internal\BuildResources\SelectSolution.xslt.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\JSILTemplate.htm Protobuild.Internal\BuildResources\JSILTemplate.htm.lzma
execute Protobuild.Compress Protobuild.Internal\BuildResources\GenerationFunctions.cs Protobuild.Internal\BuildResources\GenerationFunctions.cs-msbuild-hack.lzma
endif
if host-not Windows
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerateProject.CSharp.xslt Protobuild.Internal/BuildResources/GenerateProject.CSharp.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.MonoDevelop.xslt Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.MonoDevelop.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.VisualStudio.xslt Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.VisualStudio.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.MonoDevelop.xslt Protobuild.Internal/BuildResources/GenerateProject.CPlusPlus.MonoDevelop.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerateSolution.xslt Protobuild.Internal/BuildResources/GenerateSolution.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/NuGetPlatformMappings.xml Protobuild.Internal/BuildResources/NuGetPlatformMappings.xml.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/SelectSolution.xslt Protobuild.Internal/BuildResources/SelectSolution.xslt.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/JSILTemplate.htm Protobuild.Internal/BuildResources/JSILTemplate.htm.lzma
execute Protobuild.Compress Protobuild.Internal/BuildResources/GenerationFunctions.cs Protobuild.Internal/BuildResources/GenerationFunctions.cs-msbuild-hack.lzma
endif
build
if host Windows
execute Protobuild.Compress Protobuild.Internal\bin\Windows\AnyCPU\Release\Protobuild.Internal.dll Protobuild\Protobuild.Internal.dll.lzma
endif
if host MacOS
execute Protobuild.Compress Protobuild.Internal/bin/MacOS/AnyCPU/Release/Protobuild.Internal.dll Protobuild/Protobuild.Internal.dll.lzma
endif
if host Linux
execute Protobuild.Compress Protobuild.Internal/bin/Linux/AnyCPU/Release/Protobuild.Internal.dll Protobuild/Protobuild.Internal.dll.lzma
endif
build
execute Protobuild.UnitTests
if host-not MacOS
execute Protobuild.FunctionalTests
endif
if host Windows
native-execute cmd /C "del Protobuild.exe.old"
native-execute cmd /C "rename Protobuild.exe Protobuild.exe.old"
native-execute cmd /C "copy /Y Protobuild\bin\Windows\AnyCPU\Release\Protobuild.exe Protobuild.exe"
endif
if host MacOS
native-execute cp Protobuild/bin/MacOS/AnyCPU/Release/Protobuild.exe Protobuild.exe
endif
if host Linux
native-execute cp Protobuild/bin/Linux/AnyCPU/Release/Protobuild.exe Protobuild.exe
endif