diff options
Diffstat (limited to 'BuildIt.sh')
-rwxr-xr-x | BuildIt.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/BuildIt.sh b/BuildIt.sh new file mode 100755 index 0000000..2046ac9 --- /dev/null +++ b/BuildIt.sh | |||
@@ -0,0 +1,44 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Poor mans git sub modules / subtrees, coz otherwise it gets complex. | ||
4 | #if [ ! -d git-sub-modules/opensim-moneymodule-gloebit ]; then | ||
5 | # pushd git-sub-modules >/dev/null | ||
6 | # git clone https://github.com/gloebit/opensim-moneymodule-gloebit.git | ||
7 | # popd >/dev/null | ||
8 | #else | ||
9 | # pushd git-sub-modules/opensim-moneymodule-gloebit >/dev/null | ||
10 | # git pull | ||
11 | # popd >/dev/null | ||
12 | #fi | ||
13 | #rm -rf addon-modules/Gloebit/GloebitMoneyModule | ||
14 | #cp -r git-sub-modules/opensim-moneymodule-gloebit/addon-modules/Gloebit/GloebitMoneyModule addon-modules/Gloebit/ | ||
15 | |||
16 | ./runprebuild.sh autoclean | ||
17 | # Clean the stuff autoclean forgets to clean. I feel so dirty. | ||
18 | find -name obj -type d -print | xargs /bin/rm -fr | ||
19 | # Clean the stuff the tests created. | ||
20 | rm -fr bin/ScriptEngines | ||
21 | rm Test*.txt | ||
22 | ./runprebuild.sh vs2015 | ||
23 | |||
24 | # Prebuild converts Microsoft.CSharp.targets to Microsoft.CSHARP.Targets, which case sensitive file systems fail to find. | ||
25 | #find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp.targets@g" | ||
26 | |||
27 | # Debian no longer provides nant. | ||
28 | #./nant-color | ||
29 | |||
30 | if [ "4" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then | ||
31 | export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue | ||
32 | xbuild /target:clean | ||
33 | xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" | ||
34 | else | ||
35 | # Use this for Mono 5 and later. | ||
36 | msbuild /p:Configuration=Release | ||
37 | # msbuild /p:Configuration=Debug | ||
38 | fi | ||
39 | |||
40 | #cp -f addon-modules/Gloebit/GloebitMoneyModule/bin/Gloebit.dll bin | ||
41 | |||
42 | pushd src >/dev/null | ||
43 | ./BuildIt.sh | ||
44 | popd >/dev/null | ||