From: Matthias Rampke Date: Fri, 12 Aug 2011 15:54:10 +0000 (+0200) Subject: use bourne compatible function definitions X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=7a405b83df06e6460d8596ec4cb6c6a8f66d1504 use bourne compatible function definitions --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index e28f072..96b1aca 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -162,7 +162,7 @@ esac ############################################################################## # Fetch a versioned file from a URL -function fetch { +fetch() { if [ ! -e ${STAMPS}/$1.fetch ]; then log "Downloading $1 sources..." wget -c $2 @@ -171,14 +171,14 @@ function fetch { } # Log a message out to the console -function log { +log() { echo "******************************************************************" echo "* $*" echo "******************************************************************" } # Unpack an archive -function unpack { +unpack() { log Unpacking $* # Use 'auto' mode decompression. Replace with a switch if tar doesn't support -a ARCHIVE=$(ls ${SOURCES}/$1.tar.*) @@ -201,7 +201,7 @@ function unpack { } # Install a build -function install { +install() { log $1 ${SUDO} make ${MAKEFLAGS} $2 $3 $4 $5 $6 $7 $8 }