From f7232e4210b0758cedc4d838d77ec03e60edc61d Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 21:19:25 +1000 Subject: Add a build script. --- BuildIt.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 BuildIt.sh (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh new file mode 100755 index 0000000..da41f8e --- /dev/null +++ b/BuildIt.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +./runprebuild.sh + +xbuild /target:clean +xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" + +#msbuild /p:Configuration=Release -- cgit v1.1 From 553748e76cbbf18ae9d29b3d081a3b44aff7474e Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 20 May 2019 20:10:57 +1000 Subject: Initial tweaks of the installation stuff. --- BuildIt.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh index da41f8e..76c54d7 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -2,7 +2,12 @@ ./runprebuild.sh +# Debian no longer provides nant. +#./nant-color + +# Use this for Mono 4. xbuild /target:clean xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" +# Use this for Mono 5. #msbuild /p:Configuration=Release -- cgit v1.1 From 15f9abac0c3ed9b361f7232681cd4b9f2aca8e68 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 3 Jun 2019 16:33:29 +1000 Subject: Better build script. Clean out last build the dumb way. Check for Mono version. --- BuildIt.sh | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh index 76c54d7..66577a1 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -1,13 +1,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 -# Use this for Mono 4. -xbuild /target:clean -xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" - -# Use this for Mono 5. -#msbuild /p:Configuration=Release +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 -- cgit v1.1 From 5192443020db21e59c214180e94a5fce1dae6c37 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 19 Jul 2019 09:42:06 +1000 Subject: Fix up prebuild stuff. --- BuildIt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh index 66577a1..aa41594 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -10,7 +10,10 @@ find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f sleep 1 touch lastBuild -./runprebuild.sh +./runprebuild.sh vs2010 + +# Prebuild converts Microsoft.CSharp.targets to Microsoft.CSHARP.Targets, which case sensitive file systems fail to find. +find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp.targets@g" # Debian no longer provides nant. #./nant-color -- cgit v1.1 From 1c2871fd784b6665d902a58b8f088aee86321629 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 23 Jul 2019 23:10:52 +1000 Subject: Updated for Mono 6. --- BuildIt.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh index aa41594..c51a349 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -18,11 +18,11 @@ find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp. # 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 +if [ "4" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue xbuild /target:clean xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" +else + # Use this for Mono 5 and later. + msbuild /p:Configuration=Release fi -- cgit v1.1 From 7f332ccdfd0406e319cc65fe09ecca442c2add9c Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 1 Aug 2019 05:55:53 +1000 Subject: Comments++ about how to build and test debug builds. --- BuildIt.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh index c51a349..86948b6 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -25,4 +25,5 @@ if [ "4" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then else # Use this for Mono 5 and later. msbuild /p:Configuration=Release +# msbuild /p:Configuration=Debug fi -- cgit v1.1