aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-06-03 16:33:29 +1000
committeronefang2019-06-03 16:33:29 +1000
commit15f9abac0c3ed9b361f7232681cd4b9f2aca8e68 (patch)
tree762712815718c6652f96affd2966b16e8e135d29
parentInstructions for latest Mono. (diff)
downloadopensim-SC_OLD-15f9abac0c3ed9b361f7232681cd4b9f2aca8e68.zip
opensim-SC_OLD-15f9abac0c3ed9b361f7232681cd4b9f2aca8e68.tar.gz
opensim-SC_OLD-15f9abac0c3ed9b361f7232681cd4b9f2aca8e68.tar.bz2
opensim-SC_OLD-15f9abac0c3ed9b361f7232681cd4b9f2aca8e68.tar.xz
Better build script.
Clean out last build the dumb way. Check for Mono version.
-rw-r--r--.gitignore1
-rwxr-xr-xBuildIt.sh24
2 files changed, 19 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 173ec34..cec33fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
1.project 1.project
2.settings 2.settings
3lastBuild
3#.gitignore 4#.gitignore
4*.csproj 5*.csproj
5*.csproj.user 6*.csproj.user
diff --git a/BuildIt.sh b/BuildIt.sh
index 76c54d7..66577a1 100755
--- a/BuildIt.sh
+++ b/BuildIt.sh
@@ -1,13 +1,25 @@
1#!/bin/bash 1#!/bin/bash
2 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
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. 18if [ "5" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then
9xbuild /target:clean 19 # Use this for Mono 5.
10xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" 20 msbuild /p:Configuration=Release
11 21else
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"
25fi