diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-12-10 13:48:38 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-14 00:15:09 +0100 |
commit | a6ba0cb35da64d658b7a01ea4597416f8522d5e1 (patch) | |
tree | eb38733ad427f44bdb4bc38f09c81eb5de7a7c86 /scripts | |
parent | 709cc372cad628846d73447edfd95ac39c8e2319 (diff) | |
download | kernel_samsung_smdk4412-a6ba0cb35da64d658b7a01ea4597416f8522d5e1.tar.gz kernel_samsung_smdk4412-a6ba0cb35da64d658b7a01ea4597416f8522d5e1.tar.bz2 kernel_samsung_smdk4412-a6ba0cb35da64d658b7a01ea4597416f8522d5e1.zip |
kbuild: fix string equality testing in tags.sh
Test of string equality in shells is =, not C-like ==.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 3c814ba0fa8..4e754720985 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -7,7 +7,7 @@ # Uses the following environment variables: # ARCH, SUBARCH, srctree, src, obj -if [ $KBUILD_VERBOSE == 1 ]; then +if [ "$KBUILD_VERBOSE" = "1" ]; then set -x fi @@ -18,7 +18,7 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \ -prune -o" # Do not use full path is we do not use O=.. builds -if [ "${KBUILD_SRC}" == "" ]; then +if [ "${KBUILD_SRC}" = "" ]; then tree= else tree=${srctree}/ @@ -135,10 +135,10 @@ xtags() # Support um (which uses SUBARCH) -if [ ${ARCH} == um ]; then - if [ $SUBARCH == i386 ]; then +if [ "${ARCH}" = "um" ]; then + if [ "$SUBARCH" = "i386" ]; then archinclude=x86 - elif [ $SUBARCH == x86_64 ]; then + elif [ "$SUBARCH" = "x86_64" ]; then archinclude=x86 else archinclude=${SUBARCH} |