From 29b1c2282ee109cddc3230ab69dff8c4f0004556 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 16 Dec 2015 17:46:36 -0800 Subject: [PATCH] actually tested DorkBuild this time :) --- KoreBuild-dotnet/build/KoreBuild.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/KoreBuild-dotnet/build/KoreBuild.sh b/KoreBuild-dotnet/build/KoreBuild.sh index 46a0508b62..b942dd70c1 100644 --- a/KoreBuild-dotnet/build/KoreBuild.sh +++ b/KoreBuild-dotnet/build/KoreBuild.sh @@ -42,18 +42,16 @@ fi # Probe for Mono Reference assemblies if test -z "$DOTNET_REFERENCE_ASSEMBLIES_PATH"; then - if test $(uname) == Darwin; then - if test -d "/Library/Frameworks/Mono.framework/Version/Current/lib/mono/xbuild-frameworks"; then - export DOTNET_REFERENCE_ASSEMBLIES_PATH="/Library/Frameworks/Mono.framework/Version/Current/lib/mono/xbuild-frameworks" - fi - else - if test -d "/usr/local/lib/mono/xbuild-frameworks"; then - export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/local/lib/mono/xbuild-frameworks" - else if test -d "/usr/lib/mono/xbuild-frameworks"; then - export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/lib/mono/xbuild-frameworks" - fi + if test $(uname) == Darwin && test -d "/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks"; then + export DOTNET_REFERENCE_ASSEMBLIES_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks" + elif test -d "/usr/local/lib/mono/xbuild-frameworks"; then + export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/local/lib/mono/xbuild-frameworks" + elif test -d "/usr/lib/mono/xbuild-frameworks"; then + export DOTNET_REFERENCE_ASSEMBLIES_PATH="/usr/lib/mono/xbuild-frameworks" fi fi +echo "Using Reference Assemblies from: $DOTNET_REFERENCE_ASSEMBLIES_PATH" + mono $koreBuildFolder/build/Sake/tools/Sake.exe -I $koreBuildFolder/build -f $makefilePath "$@"