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

Fixed the previous commit.

build/lbuild

index 2c2340d..0a7c5a8 100755 (executable)
@@ -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