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 # this is the branch table
58 # keep this list sorted alphabetically!
60 b1_4*) buildtag="b1_4" ;;
62 b_release_1_4_6-patchless) buildtag="b1_4" ;;
63 b_release_1_4_7-test) buildtag="b_release_1_4_7" ;;
65 b_release*) buildtag=$lustretag ;;
67 # These releases did not get build tagged for them because they
68 # this build system didn't exist when they were tagged
73 v*) buildtag=$lustretag ;;
75 # this is the branch table
76 # keep this list sorted alphabetically!
92 if [ "$tag" = "HEAD" ] ; then
95 elif [ "$tag" ] ; then
99 # silently skip if no tag was specified
103 if [ -d "$dir" ] ; then
104 echo "$progname: Updating $dir to $tag"
105 ( cd "$dir" && cvs up -dP $uptag )
107 echo "$progname: Checking out $dir from $tag"
108 cvs co -P $cotag -d "$dir" "$module"
110 if [ $? != 0 ] ; then
111 error_modules="$dir $error_modules"
115 cvs_cmd build lustre-build "$buildtag"
117 if [ -f build/buildcvs ] ; then
120 fatal 1 "build/buildcvs does not exist; not updating other modules."
123 if [ "$error_modules" ] ; then
124 fatal 1 "There were errors checking out the following directories: $error_modules"