From 0e6efb37a7821ea808a7d2ad498b72303f3cbd97 Mon Sep 17 00:00:00 2001
From: mjmac <mjmac>
Date: Fri, 7 Sep 2007 10:37:56 +0000
Subject: [PATCH] b=12348 i=brian i=scjody * Include disk1_4.zip in
 lustre-tests RPM

---
 build/lbuild | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/build/lbuild b/build/lbuild
index 7e9c63072c..41ffe3fea7 100755
--- a/build/lbuild
+++ b/build/lbuild
@@ -83,12 +83,9 @@ is_release()
 
 list_targets()
 {
-    echo -n "Available targets:"
-    for target in $TOPDIR/lustre/lustre/kernel_patches/targets/*.target ; do
-        target_file=${target##*/}
-        echo -n " ${target_file%%.target}"
+    for target in $TOPDIR/lustre/kernel_patches/targets/*.target.in ; do
+        echo -n "$(basename $target .target.in) "
     done
-    echo
 }
 
 usage()
@@ -147,9 +144,9 @@ Usage: ${0##*/} [OPTION]... [-- <lustre configure options>]
     A CVS branch/tag name to build from when pulling from CVS.
 
   --target=TARGET
-    The name of the target to build.  The available targets are listed
-    below.
-
+    The name of the target to build.  
+    One of: $(list_targets)
+    
   --target-archs=TARGET_ARCHS
     A (space delimited) list of architectures to build.  By default,
     all of the archs supported by the TARGET will be built, in
@@ -167,8 +164,6 @@ Usage: ${0##*/} [OPTION]... [-- <lustre configure options>]
 
 EOF
 
-#   list_targets
-
     fatal "$1" "$2"
 }
 
-- 
GitLab