summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-24 11:46:06 +0800
committerTitanSnow <[email protected]>2017-04-24 11:46:06 +0800
commitc3c37385fc23439c28b97b113be0fce8aef947b8 (patch)
treed80d7d1f13a8f2bdbd405a1c59b7f5da7f06088a /scripts
parentc79f19923138e47269bea7285802d13eaf7f7bf9 (diff)
echo branch name
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index f41c2b118..273ae1f17 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -58,7 +58,11 @@ install_tools()
}
test_tools || { install_tools && test_tools; } || my_exit 'Dependencies Installation Fail' 1
branch=
-if [ x != "x$1" ];then branch="-b $1";fi
+if [ x != "x$1" ]
+then
+ branch="-b $1"
+ echo "Branch: $1"
+fi
git clone --depth=1 $branch https://github.com/tboox/xmake.git /tmp/$$xmake_getter || my_exit 'Clone Fail'
make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail'
IFS=':'