提交 a6ba0cb3 编写于 作者: J Jiri Slaby 提交者: Sam Ravnborg

kbuild: fix string equality testing in tags.sh

Test of string equality in shells is =, not C-like ==.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 709cc372
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# Uses the following environment variables: # Uses the following environment variables:
# ARCH, SUBARCH, srctree, src, obj # ARCH, SUBARCH, srctree, src, obj
if [ $KBUILD_VERBOSE == 1 ]; then if [ "$KBUILD_VERBOSE" = "1" ]; then
set -x set -x
fi fi
...@@ -18,7 +18,7 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \ ...@@ -18,7 +18,7 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \
-prune -o" -prune -o"
# Do not use full path is we do not use O=.. builds # Do not use full path is we do not use O=.. builds
if [ "${KBUILD_SRC}" == "" ]; then if [ "${KBUILD_SRC}" = "" ]; then
tree= tree=
else else
tree=${srctree}/ tree=${srctree}/
...@@ -135,10 +135,10 @@ xtags() ...@@ -135,10 +135,10 @@ xtags()
# Support um (which uses SUBARCH) # Support um (which uses SUBARCH)
if [ ${ARCH} == um ]; then if [ "${ARCH}" = "um" ]; then
if [ $SUBARCH == i386 ]; then if [ "$SUBARCH" = "i386" ]; then
archinclude=x86 archinclude=x86
elif [ $SUBARCH == x86_64 ]; then elif [ "$SUBARCH" = "x86_64" ]; then
archinclude=x86 archinclude=x86
else else
archinclude=${SUBARCH} archinclude=${SUBARCH}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册