Whamcloud - gitweb
r=boc
authornic <nic>
Sat, 8 Jan 2005 00:30:25 +0000 (00:30 +0000)
committernic <nic>
Sat, 8 Jan 2005 00:30:25 +0000 (00:30 +0000)
update lbuild to play nicely with the new CVS layout

build/lbuild

index 846f1c1..c0c0474 100755 (executable)
@@ -280,13 +280,20 @@ unpack_lustre()
            DATESTAMP=""
        fi          
 
-       cvs -d "$CVSROOT" -qz3 co $DATESTAMP -r "$TAG" -d "$DIRNAME" lustre || \
-           fatal 1 "There was an error checking out Lustre from CVS."
+       cvs -d "$CVSROOT" -qz3 co $DATESTAMP -d "$DIRNAME" lustre || \
+           fatal 1 "There was an error checking out toplevel Lustre from CVS."
+       pushd "$DIRNAME" > /dev/null
+       ./lustrecvs "$TAG" || \
+           fatal 1 "There was an error checking out Lustre/Portals/Build from CVS."
        echo "Creating lustre tarball..."
-       tar zcf "$DIRNAME.tar.gz" "$DIRNAME" \
-           --exclude "CVS" --exclude "*~" --exclude ".cvsignore" || \
-           fatal 1 "Could not create Lustre tarball."
-       LUSTRE="$PWD/$DIRNAME.tar.gz"
+       sh autogen.sh || fatal 1 "There was an error running autogen.sh."
+       ./configure --disable-{modules,utils,liblustre,tests,doc} || \
+           fatal 1 "There was an error running ./configure to create makefiles."
+       make dist || fatal 1 "There was an error running 'make dist'."
+       popd > /dev/null
+       fname=`basename $DIRNAME/lustre-*.tar.gz`
+       cp $DIRNAME/$fname . || fatal 1 "There was an error copying lustre tarball."
+       LUSTRE="$PWD/$fname"
        ln -sf "$DIRNAME" lustre
     fi
 }