diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-21 10:54:24 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-21 10:54:24 +0000 |
commit | 22c0b6ee5cdfa9574f9a59845b35e9a818f66a80 (patch) | |
tree | 15b278ccaab6697aa0a3ef7ef6011770fac692d1 /toolchain/dependencies/dependencies.sh | |
parent | 8d34e5660f85de663ba399c398b82cc6416aee9e (diff) | |
download | buildroot-novena-22c0b6ee5cdfa9574f9a59845b35e9a818f66a80.tar.gz buildroot-novena-22c0b6ee5cdfa9574f9a59845b35e9a818f66a80.zip |
- stop using head and use sed -e '1d' at the end instead
Diffstat (limited to 'toolchain/dependencies/dependencies.sh')
-rwxr-xr-x | toolchain/dependencies/dependencies.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh index 40bfd9a2a..f19de1ca0 100755 --- a/toolchain/dependencies/dependencies.sh +++ b/toolchain/dependencies/dependencies.sh @@ -129,7 +129,7 @@ if [ -z "$MAKE" ] ; then /bin/echo -e "\n\nYou must install 'make' on your build machine\n"; exit 1; fi; -MAKE_VERSION=$($MAKE --version 2>&1 | head -n1 | $XSED -e 's/^.* \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g') +MAKE_VERSION=$($MAKE --version 2>&1 | $XSED -e 's/^.* \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q') if [ -z "$MAKE_VERSION" ] ; then echo "make installed: FALSE" /bin/echo -e "\n\nYou must install 'make' on your build machine\n"; @@ -160,7 +160,7 @@ if [ -z "$COMPILER" ] ; then exit 1; fi; -COMPILER_VERSION=$($COMPILER --version 2>&1 | head -n1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g") +COMPILER_VERSION=$($COMPILER --version 2>&1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g" -e '1q') if [ -z "$COMPILER_VERSION" ] ; then echo "gcc installed: FALSE" /bin/echo -e "\n\nYou must install 'gcc' on your build machine\n"; @@ -187,7 +187,7 @@ if [ -z "$CXXCOMPILER" ] ; then #exit 1 fi if [ ! -z "$CXXCOMPILER" ] ; then - CXXCOMPILER_VERSION=$($CXXCOMPILER --version 2>&1 | head -n1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g") + CXXCOMPILER_VERSION=$($CXXCOMPILER --version 2>&1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g" -e '1q') if [ -z "$CXXCOMPILER_VERSION" ] ; then echo "c++ installed: FALSE" /bin/echo -e "\nYou may have to install 'g++' on your build machine\n" |