aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/BuildIt.sh
blob: 66577a13417c41e540562a73b14a88873f7c6066 (plain)
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
#!/bin/bash

# Delete *.pdb, *.dll, *,dll.*, *.csproj, *.csproj.*, */obj/
find -newer lastBuild -name obj -type d -print | xargs /bin/rm -fr
find -newer lastBuild -name *.csproj -type f -print | xargs /bin/rm -f
find -newer lastBuild -name *.csproj.* -type f -print | xargs /bin/rm -f
find -newer lastBuild -name *.dll -type f -print | xargs /bin/rm -f
find -newer lastBuild -name *.dll.* -type f -print | xargs /bin/rm -f
find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f
sleep 1
touch lastBuild

./runprebuild.sh

# Debian no longer provides nant.
#./nant-color

if [ "5" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then
    # Use this for Mono 5.
    msbuild /p:Configuration=Release
else
    export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue
    xbuild /target:clean
    xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5"
fi