From: yangsheng Date: Sat, 20 Sep 2008 12:04:05 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_9_80~74 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=1dd3f539a299a50fbbe87c01aa1ba312f790d84b Branch b1_6 b=16689 Fixed the previous commit. --- diff --git a/build/lbuild b/build/lbuild index 2c2340d..0a7c5a8 100755 --- a/build/lbuild +++ b/build/lbuild @@ -510,7 +510,7 @@ load_target() BUILD_ARCHS= for arch in $(uniqify "$ALL_ARCHS") ; do - if [ -z "$TARGET_ARCHS" ] || [[ $TARGET_ARCHES =~ (\ |^)$arch(\ |$) ]] ; then + if [ -z "$TARGET_ARCHS" ] || echo "$TARGET_ARCHS" | grep -w "$arch" >/dev/null 2>/dev/null ; then BUILD_ARCHS="$BUILD_ARCHS $arch" fi done