Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 8349419

Browse files
author
Nate McMaster
committed
Updating build script
1 parent 4e495b3 commit 8349419

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

build.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/usr/bin/env bash
22

3-
SOURCE="${BASH_SOURCE[0]}"
4-
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
5-
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
6-
SOURCE="$(readlink "$SOURCE")"
7-
[[ $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
8-
done
9-
repoFolder="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
10-
113
buildFolder=.build
124
koreBuildFolder=$buildFolder/KoreBuild-dotnet
135

@@ -42,7 +34,12 @@ fi
4234

4335
if test ! -d $koreBuildFolder; then
4436
mono $nugetPath install KoreBuild-dotnet -ExcludeVersion -o $buildFolder -nocache -pre
37+
chmod +x $koreBuildFolder/build/KoreBuild.sh
4538
fi
4639

47-
source $koreBuildFolder/build/KoreBuild.sh
40+
makeFile=makefile.shade
41+
if [ ! -e $makeFile ]; then
42+
makeFile=$koreBuildFolder/build/makefile.shade
43+
fi
4844

45+
./$koreBuildFolder/build/KoreBuild.sh -n $nugetPath -m $makeFile "$@"

0 commit comments

Comments
 (0)