diff options
Diffstat (limited to 'BuildIt.sh')
-rwxr-xr-x | BuildIt.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/BuildIt.sh b/BuildIt.sh new file mode 100755 index 0000000..86948b6 --- /dev/null +++ b/BuildIt.sh | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Delete *.pdb, *.dll, *,dll.*, *.csproj, *.csproj.*, */obj/ | ||
4 | find -newer lastBuild -name obj -type d -print | xargs /bin/rm -fr | ||
5 | find -newer lastBuild -name *.csproj -type f -print | xargs /bin/rm -f | ||
6 | find -newer lastBuild -name *.csproj.* -type f -print | xargs /bin/rm -f | ||
7 | find -newer lastBuild -name *.dll -type f -print | xargs /bin/rm -f | ||
8 | find -newer lastBuild -name *.dll.* -type f -print | xargs /bin/rm -f | ||
9 | find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f | ||
10 | sleep 1 | ||
11 | touch lastBuild | ||
12 | |||
13 | ./runprebuild.sh vs2010 | ||
14 | |||
15 | # Prebuild converts Microsoft.CSharp.targets to Microsoft.CSHARP.Targets, which case sensitive file systems fail to find. | ||
16 | find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp.targets@g" | ||
17 | |||
18 | # Debian no longer provides nant. | ||
19 | #./nant-color | ||
20 | |||
21 | if [ "4" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then | ||
22 | export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue | ||
23 | xbuild /target:clean | ||
24 | xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" | ||
25 | else | ||
26 | # Use this for Mono 5 and later. | ||
27 | msbuild /p:Configuration=Release | ||
28 | # msbuild /p:Configuration=Debug | ||
29 | fi | ||