--- configure.orig 2007-08-21 15:44:56 +0100 +++ configure 2007-08-21 15:47:35 +0100 @@ -12,18 +12,18 @@ # checkPython() { - if [ -z $PYTHON ]; then + if [ -z "$PYTHON" ]; then PYTHON=`which python 2>/dev/null` fi echo -n "Checking for Python : " if [ ! -x "$PYTHON" ]; then - echo -e $GREEN"not found!"$NORMAL + printf $GREEN"not found!"$NORMAL"\n" echo "Please make sure that the Python interpreter is available in your PATH" echo "or invoke configure using the PYTHON flag, e.g." echo "$ PYTHON=/usr/local/bin/python configure" exit 1 fi - echo -e $GREEN"$PYTHON"$NORMAL + printf $GREEN"$PYTHON"$NORMAL"\n" } # Checks for SCons. Honours $SCONS if set. Stores path to 'scons' in $SCONS. @@ -32,17 +32,17 @@ checkSCons() { echo -n "Checking for SCons : " - if [ -z $SCONS ]; then + if [ -z "$SCONS" ]; then SCONS=`which scons 2>/dev/null` fi unset SCONS if [ ! -x "$SCONS" ]; then - echo -e $BOLD"Use Bundled scons."$NORMAL + printf $BOLD"Use Bundled scons."$NORMAL"\n" #echo -e $BOLD"not found, will use mini distribution."$NORMAL tar xjf bksys/scons-mini.tar.bz2 SCONS="./scons" else - echo -e $GREEN"$SCONS"$NORMAL + printf $GREEN"$SCONS"$NORMAL"\n" fi SCONS="$SCONS -Q" } @@ -79,7 +79,7 @@ checkPython checkSCons -if [[ "$1" == "--help" ]]; then +if [ "$1" = "--help" ]; then $SCONS --help exit fi