File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if test ` uname` = Darwin; then
4+ cachedir=~ /Library/Caches/KBuild
5+ else
6+ if [ -z $XDG_DATA_HOME ]; 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/nuget.exe
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+ if ! type k > /dev/null 2>&1 ; then
31+ source packages/KoreBuild/build/kvm.sh
32+ fi
33+
34+ if ! type k > /dev/null 2>&1 ; then
35+ kvm upgrade
36+ fi
37+
38+ mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade " $@ "
You can’t perform that action at this time.
0 commit comments