From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756152AbYLTOhe (ORCPT ); Sat, 20 Dec 2008 09:37:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752898AbYLTOas (ORCPT ); Sat, 20 Dec 2008 09:30:48 -0500 Received: from pfepb.post.tele.dk ([195.41.46.236]:56398 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbYLTOaJ (ORCPT ); Sat, 20 Dec 2008 09:30:09 -0500 From: Sam Ravnborg To: kbuild , lkml Cc: Jiri Slaby , Sam Ravnborg Subject: [PATCH 20/26] kbuild: fix string equality testing in tags.sh Date: Sat, 20 Dec 2008 15:31:31 +0100 Message-Id: <1229783497-19550-20-git-send-email-sam@ravnborg.org> X-Mailer: git-send-email 1.6.0.2.GIT In-Reply-To: <20081220142518.GA19390@uranus.ravnborg.org> References: <20081220142518.GA19390@uranus.ravnborg.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Slaby Test of string equality in shells is =, not C-like ==. Signed-off-by: Jiri Slaby Signed-off-by: Sam Ravnborg --- scripts/tags.sh | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 3c814ba..4e75472 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} -- 1.6.0.2.GIT