Added build.sh

This commit is contained in:
David Fowler 2014-04-27 17:00:45 -07:00
parent f740aabb79
commit fb3528f7f8
1 changed files with 30 additions and 0 deletions

30
build.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
if test `uname` = Darwin; then
cachedir=~/Library/Caches/KBuild
else
if x$XDG_DATA_HOME = x; then
cachedir=$HOME/.local/share
else
cachedir=$XDG_DATA_HOME;
fi
fi
mkdir -p $cachedir
url=https://www.nuget.org/nuget.exe
if test ! -f $cachedir/nuget.exe; then
wget -o $cachedir/nuget.exe $url 2>/dev/null || curl -o $cachedir/nuget.exe --location $url /dev/null
fi
if test ! -e .nuget; then
mkdir .nuget
cp $cachedir/nuget.exe .nuget
fi
if test ! -d packages/KoreBuild; then
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
fi
mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade "$@"