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:
3462659
)
test for features, not OSs
author
Matthias Rampke
<matthias@rampke.de>
Sat, 13 Aug 2011 19:09:35 +0000
(21:09 +0200)
committer
Matthias Rampke
<matthias@rampke.de>
Sat, 13 Aug 2011 19:10:55 +0000
(21:10 +0200)
summon-arm-toolchain
patch
|
blob
|
history
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index 4b901249e49cd735c74cc2a7768c62a1e190babd..f6826da7ac599c6bff11b6c194b078017927c517 100755
(executable)
--- a/
summon-arm-toolchain
+++ b/
summon-arm-toolchain
@@
-100,43
+100,27
@@
SOURCES=${SUMMON_DIR}/sources
STAMPS=${SUMMON_DIR}/stamps
STAMPS=${SUMMON_DIR}/stamps
-##############################################################################
-# Tool section
-##############################################################################
-TAR=tar
-
##############################################################################
# OS and Tooldetection section
# Detects which tools and flags to use
##############################################################################
##############################################################################
# OS and Tooldetection section
# Detects which tools and flags to use
##############################################################################
-case "$(uname)" in
- Linux)
- echo "Found Linux OS."
- ;;
- Darwin)
- echo "Found Darwin OS."
-
- # darwin dependencies
- DARWINDEPS="wget"
-
- echo "Installing dependencies ..."
- if ! which brew > /dev/null; then
- echo "Homebrew not installed."
- else
- brew install ${DARWINDEPS} | (grep -v '^Warning: Formula already installed: ' || true)
- fi
+if ! which wget > /dev/null; then
+ echo "Please install wget"
+ exit 1
+fi
+if [ USE_LINARO = 1 ]; then
+ if which gnutar > /dev/null; then
TAR=gnutar
TAR=gnutar
- ;;
- CYGWIN*)
- echo "Found CygWin that means Windows most likely."
- ;;
- *)
- echo "Found unknown OS. Aborting!"
- exit 1
- ;;
-esac
+ elif which gtar > /dev/null; then
+ TAR=gtar
+ else # hopefully it understands the GNU format
+ TAR=tar
+ fi
+else
+ TAR=tar # use the system tar
+fi
##############################################################################
# Building section
##############################################################################
# Building section