X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=summon-arm-toolchain;h=7e2b69acbc43aca910fa868203e1a46b7c07a316;hb=e6f8e7e99e202076206c1ad551634a5f15cb1a55;hp=e28f072b3647b5cb9812a45403a49584cd901627;hpb=22bfe5834301bd434d65a7d5fc8fb06307c23213;p=summon-arm-toolchain.git diff --git a/summon-arm-toolchain b/summon-arm-toolchain index e28f072..7e2b69a 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Written by Uwe Hermann , released as public domain. # Modified by Piotr Esden-Tempski , released as public domain. @@ -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 }