Update `build.sh` to match other repos

- currently attempts to `source KoreBuild.sh`
This commit is contained in:
Doug Bunting 2016-02-24 09:38:40 -08:00
parent 5b0b0b95a7
commit d1695ea6d6
1 changed files with 6 additions and 9 deletions

View File

@ -1,13 +1,5 @@
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
repoFolder="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
buildFolder=.build
koreBuildFolder=$buildFolder/KoreBuild-dotnet
@ -42,7 +34,12 @@ fi
if test ! -d $koreBuildFolder; then
mono $nugetPath install KoreBuild-dotnet -ExcludeVersion -o $buildFolder -nocache -pre
chmod +x $koreBuildFolder/build/KoreBuild.sh
fi
source $koreBuildFolder/build/KoreBuild.sh
makeFile=makefile.shade
if [ ! -e $makeFile ]; then
makeFile=$koreBuildFolder/build/makefile.shade
fi
./$koreBuildFolder/build/KoreBuild.sh -n $nugetPath -m $makeFile "$@"