diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | BuildIt.sh | 24 |
2 files changed, 19 insertions, 6 deletions
@@ -1,5 +1,6 @@ | |||
1 | .project | 1 | .project |
2 | .settings | 2 | .settings |
3 | lastBuild | ||
3 | #.gitignore | 4 | #.gitignore |
4 | *.csproj | 5 | *.csproj |
5 | *.csproj.user | 6 | *.csproj.user |
@@ -1,13 +1,25 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 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 | |||
3 | ./runprebuild.sh | 13 | ./runprebuild.sh |
4 | 14 | ||
5 | # Debian no longer provides nant. | 15 | # Debian no longer provides nant. |
6 | #./nant-color | 16 | #./nant-color |
7 | 17 | ||
8 | # Use this for Mono 4. | 18 | if [ "5" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then |
9 | xbuild /target:clean | 19 | # Use this for Mono 5. |
10 | xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" | 20 | msbuild /p:Configuration=Release |
11 | 21 | else | |
12 | # Use this for Mono 5. | 22 | export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue |
13 | #msbuild /p:Configuration=Release | 23 | xbuild /target:clean |
24 | xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" | ||
25 | fi | ||