- if [ -z "$LUSTRE" ]; then
- local DATESTAMP=""
-
- if [ -n "$USE_DATESTAMP" ]; then
- DATESTAMP="-D '$DATE'"
- fi
-
- local DIRNAME="lustre-$TAG-$TIMESTAMP"
-
- 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..."
- sh autogen.sh || fatal 1 "There was an error running autogen.sh."
- ./configure --enable-dist || \
- fatal 1 "There was an error running ./configure to create makefiles."
- make dist || fatal 1 "There was an error running 'make dist'."
- LUSTRE=$PWD/lustre-*.tar.gz
- popd > /dev/null
- fi
-