summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-07 12:18:34 +0800
committerTitanSnow <[email protected]>2017-05-07 12:18:34 +0800
commitc6a0913d218f4a35d0727b5a767b275cde8b160a (patch)
treebd909e7bb86c9f0496ad0e2d810a0abac62fd346 /scripts
parent55e28abcc618e5ab0adff9f675d8dbaa8e775355 (diff)
add __install_only__
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 88b76a25a..4894e8d89 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# xmake getter
-# usage: bash <(curl -s <my location>) [branch] [commit]
+# usage: bash <(curl -s <my location>) [branch] [commit/__install_only__]
# print a LOGO!
echo ' _ '
@@ -71,7 +71,10 @@ then
else
cp -r "$(git rev-parse --show-toplevel 2>/dev/null || hg root 2>/dev/null || echo "$PWD")" /tmp/$$xmake_getter || my_exit 'Clone Fail'
fi
-make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail'
+if [ 'x__install_only__' != "x$2" ]
+then
+ make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail'
+fi
IFS=':'
patharr=($PATH)
prefix=