From c38d0b6b519a8080dd6b68a0e23ad9395ce9dff9 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel <mat@kivy.org> Date: Wed, 22 Feb 2012 18:21:47 +0100 Subject: [PATCH] wip --- build_python.sh | 4 ++-- environment.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build_python.sh b/build_python.sh index 1754f15..4298e36 100755 --- a/build_python.sh +++ b/build_python.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash . ./environment.sh @@ -7,7 +7,7 @@ # http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html # download python and patch if they aren't there -if [[ ! -a $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 ]]; then +if [ ! -a $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 ]; then curl http://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.bz2 > $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 fi diff --git a/environment.sh b/environment.sh index 8c997ad..ec5872c 100755 --- a/environment.sh +++ b/environment.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + try () { "$@" || exit -1 }