Updated build.sh

This commit is contained in:
David Fowler 2014-05-23 04:08:28 -07:00
parent a834928f1a
commit 51155fb3ef
1 changed files with 12 additions and 2 deletions

View File

@ -4,9 +4,9 @@ if test `uname` = Darwin; then
cachedir=~/Library/Caches/KBuild
else
if x$XDG_DATA_HOME = x; then
cachedir=$HOME/.local/share
cachedir=$HOME/.local/share
else
cachedir=$XDG_DATA_HOME;
cachedir=$XDG_DATA_HOME;
fi
fi
mkdir -p $cachedir
@ -27,4 +27,14 @@ if test ! -d packages/KoreBuild; then
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
fi
KRE_VERSION=$(mono .nuget/nuget.exe install KRE-mono45-x86 -pre -o ~/.kre/packages | head -1 | sed "s/.*KRE-mono45-x86 \([^']*\).*/\1/")
KRE_BIN=~/.kre/packages/KRE-mono45-x86.$KRE_VERSION/bin
chmod +x $KRE_BIN/k
chmod +x $KRE_BIN/klr
chmod +x $KRE_BIN/kpm
chmod +x $KRE_BIN/k-build
export PATH=$KRE_BIN:$PATH
mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade "$@"