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 # These use special build directories
64 b1_4*) buildtag="b1_4" ;;
66 b_release_1_4_6-patchless) buildtag="b1_4" ;;
67 b_release_1_4_7-test) buildtag="b_release_1_4_7" ;;
69 b_release*) buildtag=$lustretag ;;
71 # These releases did not get build tagged for them because they
72 # this build system didn't exist when they were tagged
77 v*) buildtag=$lustretag ;;
79 # this is the branch table
80 # keep this list sorted alphabetically!
96 if [ "$tag" = "HEAD" ] ; then
99 elif [ "$tag" ] ; then
103 # silently skip if no tag was specified
107 # create a cvs date format that will survive shell expansion
108 if [ -n "$pindate" ]; then
109 datecmd=$(date -u +%s -d "$pindate")
110 datecmd="-D @$datecmd"
115 if [ -d "$dir" ] ; then
116 echo "$progname: Updating $dir to $tag"
117 ( cd "$dir" && cvs up $datecmd -dAP $uptag )
119 echo "$progname: Checking out $dir from $tag"
120 cvs co $datecmd -P $cotag -d "$dir" "$module"
122 if [ $? != 0 ] ; then
123 error_modules="$dir $error_modules"
127 cvs_cmd build lustre-build "$buildtag"
129 if [ -f build/buildcvs ] ; then
132 fatal 1 "build/buildcvs does not exist; not updating other modules."
135 if [ "$error_modules" ] ; then
136 fatal 1 "There were errors checking out the following directories: $error_modules"