9 [ "$1" ] && echo "$progname: $1" >&2
22 Usage: $progname <lustretag> <pindate>
23 where <lustretag> is a tag of the lustre-core module
24 and <pindate> is an optional quoted timestamp suitable for cvs -D
28 if [ -z "$LUSTRECVS_UPDATED" ] ; then
29 echo "$progname: updating lustrecvs"
30 cvs up -l || fatal 1 "Error updating lustrecvs"
31 export LUSTRECVS_UPDATED=yes
35 [ "$1" = "-r" ] && shift
50 warn "a lustretag is required."
59 # this is the branch table
60 # keep this list sorted alphabetically!
62 b1_4*) buildtag="b1_4" ;;
64 b_release_1_4_6-patchless) buildtag="b1_4" ;;
65 b_release_1_4_7-test) buildtag="b_release_1_4_7" ;;
67 b_release*) buildtag=$lustretag ;;
69 # These releases did not get build tagged for them because they
70 # this build system didn't exist when they were tagged
75 v*) buildtag=$lustretag ;;
77 # this is the branch table
78 # keep this list sorted alphabetically!
94 if [ "$tag" = "HEAD" ] ; then
97 elif [ "$tag" ] ; then
101 # silently skip if no tag was specified
105 # create a cvs date format that will survive shell expansion
106 if [ -n "$pindate" ]; then
107 datecmd=$(date -u +%s -d "$pindate")
108 datecmd="-D @$datecmd"
113 if [ -d "$dir" ] ; then
114 echo "$progname: Updating $dir to $tag"
115 ( cd "$dir" && cvs up $datecmd -dAP $uptag )
117 echo "$progname: Checking out $dir from $tag"
118 cvs co $datecmd -P $cotag -d "$dir" "$module"
120 if [ $? != 0 ] ; then
121 error_modules="$dir $error_modules"
125 cvs_cmd build lustre-build "$buildtag"
127 if [ -f build/buildcvs ] ; then
130 fatal 1 "build/buildcvs does not exist; not updating other modules."
133 if [ "$error_modules" ] ; then
134 fatal 1 "There were errors checking out the following directories: $error_modules"