summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-24 10:52:47 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-10-24 10:52:47 +0200
commit9a89d4de6c5159d8b0cd6e2f6dabb8291635b315 (patch)
treedf758c0bfde7db7046eeb95a827080a427c9fefa /configure
parent253bbd1c5b5c5ae4a7bdbf731f58efa08d8cf855 (diff)
downloadqtlocation-mapboxgl-9a89d4de6c5159d8b0cd6e2f6dabb8291635b315.tar.gz
install mason automatically if it isn't present, and always use the install in ~/.mason
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 2fffd59206..ef289ac5d2 100755
--- a/configure
+++ b/configure
@@ -2,6 +2,7 @@
set -e
set -o pipefail
+shopt -s expand_aliases
CONFIG_FILE=${1:-config.gypi}
@@ -26,6 +27,13 @@ else
>&2 echo -en "\033[0m";
fi
+# Install mason
+if [[ ! -d ~/.mason ]]; then
+ >&2 echo -e "\033[1m\033[32m* Installing Mason\033[0m"
+ git clone https://github.com/mapbox/mason.git ~/.mason
+fi
+alias mason='~/.mason/mason'
+
case $MASON_PLATFORM in
'ios')