aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-build.sh
diff options
context:
space:
mode:
authorAndrew Chow <achow101@gmail.com>2016-08-25 15:42:39 -0400
committerAndrew Chow <achow101@gmail.com>2016-08-27 08:56:23 -0400
commit498d8dadbf71b96f9b2a82e449c848acf1ed03f5 (patch)
tree3ac16fb0795a87de10eb083a6dcb209a5f72e8c6 /contrib/gitian-build.sh
parenteda4cfb992d140c8471f6cc2bf16c4a106439225 (diff)
Check for OSX SDK
Diffstat (limited to 'contrib/gitian-build.sh')
-rwxr-xr-xcontrib/gitian-build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/gitian-build.sh b/contrib/gitian-build.sh
index b51a91fdc0..7baaabee6d 100755
--- a/contrib/gitian-build.sh
+++ b/contrib/gitian-build.sh
@@ -166,6 +166,13 @@ then
sudo ifconfig lxcbr0 up 10.0.2.2
fi
+# Check for OSX SDK
+if [[ ! -e "gitian-builder/inputs/MacOSX10.11.sdk.tar.gz" && $osx == true ]]
+then
+ echo "Cannot build for OSX, SDK does not exist. Will build for other OSes"
+ osx=false
+fi
+
# Get signer
if [[ -n"$1" ]]
then