From: Sam Ravnborg Date: Mon, 31 Dec 2007 13:22:55 +0000 (+0100) Subject: kbuild: fix buglet in gcc-version.sh X-Git-Tag: v3.12-rc1~24055^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0484f1299fb504d57f388e5cdaba85ed59f32ca0;p=kernel%2Fkernel-generic.git kbuild: fix buglet in gcc-version.sh Greg Schafer 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 Cc: Greg Schafer Cc: Jesper Juhl --- diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh index a5121a6..cc767b3 100644 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh @@ -9,7 +9,10 @@ # gcc-2.95.3, `030301' for gcc-3.3.1, etc. # -if [[ $1 = "-p" ]] ; then with_patchlevel=1; shift; fi +if [ "$1" = "-p" ] ; then + with_patchlevel=1; + shift; +fi compiler="$*"