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

Commit be5a98d

Browse files
committed
Added build.sh
1 parent 78bb008 commit be5a98d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

build.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
if test `uname` = Darwin; then
4+
cachedir=~/Library/Caches/KBuild
5+
else
6+
if x$XDG_DATA_HOME = x; then
7+
cachedir=$HOME/.local/share
8+
else
9+
cachedir=$XDG_DATA_HOME;
10+
fi
11+
fi
12+
mkdir -p $cachedir
13+
14+
url=https://www.nuget.org/nuget.exe
15+
16+
if test ! -f $cachedir/nuget.exe; then
17+
wget -o $cachedir/nuget.exe $url 2>/dev/null || curl -o $cachedir/nuget.exe --location $url /dev/null
18+
fi
19+
20+
if test ! -e .nuget; then
21+
mkdir .nuget
22+
cp $cachedir/nuget.exe .nuget
23+
fi
24+
25+
if test ! -d packages/KoreBuild; then
26+
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
27+
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
28+
fi
29+
30+
mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade "$@"

0 commit comments

Comments
 (0)