Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Sat, 20 Sep 2008 11:39:35 +0000 (11:39 +0000)
committeryangsheng <yangsheng>
Sat, 20 Sep 2008 11:39:35 +0000 (11:39 +0000)
b=16689
i=brian, yibin.wang

Make change for sles9/ppc64 build.

build/lbuild

index 1a7c476..661cfb8 100755 (executable)
@@ -508,7 +508,7 @@ load_target()
 
     BUILD_ARCHS=
     for arch in $(uniqify "$ALL_ARCHS") ; do
-        if [ -z "$TARGET_ARCHS" ] || echo "$TARGET_ARCHS" | grep "$arch" >/dev/null 2>/dev/null ; then
+        if [ -z "$TARGET_ARCHS" ] || [[ $TARGET_ARCHES =~ (\ |^)$arch(\ |$) ]] ; then
             BUILD_ARCHS="$BUILD_ARCHS $arch"
         fi
     done