Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Sat, 20 Sep 2008 12:05:32 +0000 (12:05 +0000)
committeryangsheng <yangsheng>
Sat, 20 Sep 2008 12:05:32 +0000 (12:05 +0000)
b=16689

Fixed previous commit.

build/lbuild

index 661cfb8..509ad22 100755 (executable)
@@ -508,7 +508,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