9 [ "$1" ] && echo "$progname: $1" >&2
22 Usage: $progname <lustretag>
23 where <lustretag> is a tag of the lustre-core module
27 if [ -z "$LUSTRECVS_UPDATED" ] ; then
28 echo "$progname: updating lustrecvs"
29 cvs up -l || fatal 1 "Error updating lustrecvs"
30 export LUSTRECVS_UPDATED=yes
34 [ "$1" = "-r" ] && shift
48 warn "a lustretag is required."
57 v*) buildtag=$lustretag ;;
59 # this is the branch table
60 # keep this list sorted alphabetically!
77 if [ "$tag" = "HEAD" ] ; then
80 elif [ "$tag" ] ; then
84 # silently skip if no tag was specified
88 if [ -d "$dir" ] ; then
89 echo "$progname: Updating $dir to $tag"
90 ( cd "$dir" && cvs up -dP $uptag )
92 echo "$progname: Checking out $dir from $tag"
93 cvs co -P $cotag -d "$dir" "$module"
96 error_modules="$dir $error_modules"
100 cvs_cmd build lustre-build "$buildtag"
102 if [ -f build/buildcvs ] ; then
105 fatal 1 "build/buildcvs does not exist; not updating other modules."
108 if [ "$error_modules" ] ; then
109 fatal 1 "There were errors checking out the following directories: $error_modules"