projects
/
summon-arm-toolchain.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22bfe58
)
use bourne compatible function definitions
author
Matthias Rampke
<matthias@rampke.de>
Fri, 12 Aug 2011 15:54:10 +0000
(17:54 +0200)
committer
Matthias Rampke
<matthias@rampke.de>
Fri, 12 Aug 2011 15:54:10 +0000
(17:54 +0200)
summon-arm-toolchain
patch
|
blob
|
history
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index e28f072b3647b5cb9812a45403a49584cd901627..96b1acace36f7eae9e6f487610d7f975b2e6dc71 100755
(executable)
--- a/
summon-arm-toolchain
+++ b/
summon-arm-toolchain
@@
-162,7
+162,7
@@
esac
##############################################################################
# Fetch a versioned file from a URL
##############################################################################
# Fetch a versioned file from a URL
-f
unction fetch
{
+f
etch()
{
if [ ! -e ${STAMPS}/$1.fetch ]; then
log "Downloading $1 sources..."
wget -c $2
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
}
# Log a message out to the console
-
function log
{
+
log()
{
echo "******************************************************************"
echo "* $*"
echo "******************************************************************"
}
# Unpack an archive
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.*)
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
}
# Install a build
-
function install
{
+
install()
{
log $1
${SUDO} make ${MAKEFLAGS} $2 $3 $4 $5 $6 $7 $8
}
log $1
${SUDO} make ${MAKEFLAGS} $2 $3 $4 $5 $6 $7 $8
}