aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/BuildIt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'BuildIt.sh')
-rwxr-xr-xBuildIt.sh29
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/
4find -newer lastBuild -name obj -type d -print | xargs /bin/rm -fr
5find -newer lastBuild -name *.csproj -type f -print | xargs /bin/rm -f
6find -newer lastBuild -name *.csproj.* -type f -print | xargs /bin/rm -f
7find -newer lastBuild -name *.dll -type f -print | xargs /bin/rm -f
8find -newer lastBuild -name *.dll.* -type f -print | xargs /bin/rm -f
9find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f
10sleep 1
11touch 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.
16find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp.targets@g"
17
18# Debian no longer provides nant.
19#./nant-color
20
21if [ "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"
25else
26 # Use this for Mono 5 and later.
27 msbuild /p:Configuration=Release
28# msbuild /p:Configuration=Debug
29fi