aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-version.sh
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-12-31 08:22:55 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:14:36 -0500
commit0484f1299fb504d57f388e5cdaba85ed59f32ca0 (patch)
tree88766246de729bf62c7d7e0c404ed4597e62dc0b /scripts/gcc-version.sh
parent899c38420c56b20e12a31fe9adfa92cd21782370 (diff)
kbuild: fix buglet in gcc-version.sh
Greg Schafer <gschafer@zip.com.au> reported: ==== $make mrproper scripts/gcc-version.sh: [[: command not found This is on a very old host with an ancient bash as /bin/sh. But I have CONFIG_SHELL set and pointing to a modern bash. Something is wrong. This doesn't happen with 2.6.23 ==== Fixed using a more common string equality test. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Greg Schafer <gschafer@zip.com.au> Cc: Jesper Juhl <jesper.juhl@gmail.com>
Diffstat (limited to 'scripts/gcc-version.sh')
-rw-r--r--scripts/gcc-version.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh
index a5121a6d8949..cc767b388baf 100644
--- a/scripts/gcc-version.sh
+++ b/scripts/gcc-version.sh
@@ -9,7 +9,10 @@
9# gcc-2.95.3, `030301' for gcc-3.3.1, etc. 9# gcc-2.95.3, `030301' for gcc-3.3.1, etc.
10# 10#
11 11
12if [[ $1 = "-p" ]] ; then with_patchlevel=1; shift; fi 12if [ "$1" = "-p" ] ; then
13 with_patchlevel=1;
14 shift;
15fi
13 16
14compiler="$*" 17compiler="$*"
15 18