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 b_uoss) buildtag=$lustretag ;;
73 # These releases did not get build tagged for them because they
74 # this build system didn't exist when they were tagged
79 v*) buildtag=$lustretag ;;
81 # this is the branch table
82 # keep this list sorted alphabetically!
98 if [ "$tag" = "HEAD" ] ; then
101 elif [ "$tag" ] ; then
105 # silently skip if no tag was specified
109 # create a cvs date format that will survive shell expansion
110 if [ -n "$pindate" ]; then
111 datecmd=$(date -u +%s -d "$pindate")
112 datecmd="-D @$datecmd"
117 if [ -d "$dir" ] ; then
118 echo "$progname: Updating $dir to $tag"
119 ( cd "$dir" && cvs up $datecmd -dAP $uptag )
121 echo "$progname: Checking out $dir from $tag"
122 cvs co $datecmd -P $cotag -d "$dir" "$module"
124 if [ $? != 0 ] ; then
125 error_modules="$dir $error_modules"
129 cvs_cmd build lustre-build "$buildtag"
131 if [ -f build/buildcvs ] ; then
134 fatal 1 "build/buildcvs does not exist; not updating other modules."
137 if [ "$error_modules" ] ; then
138 fatal 1 "There were errors checking out the following directories: $error_modules"