9 [ "$1" ] && echo "$progname: $1" >&2
22 Usage: $progname <tag> <pindate>
23 where <tag> is a tag of the ldiskfs module
24 and <pindate> is an optional quoted timestamp suitable for cvs -D
28 if [ -z "$LDISKFSCVS_UPDATED" ] ; then
29 echo "$progname: updating ldiskfscvs"
30 cvs up -l || fatal 1 "Error updating ldiskfscvs"
31 export LDISKFSCVS_UPDATED=yes
35 [ "$1" = "-r" ] && shift
50 warn "a tag is required."
59 # this is the branch table
60 # keep this list sorted alphabetically!
62 # So far there's just HEAD.
78 if [ "$tag" = "HEAD" ] ; then
81 elif [ "$tag" ] ; then
85 # silently skip if no tag was specified
89 # create a cvs date format that will survive shell expansion
90 if [ -n "$pindate" ]; then
91 datecmd=$(date -u +%s -d "$pindate")
92 datecmd="-D @$datecmd"
97 if [ -d "$dir" ] ; then
98 echo "$progname: Updating $dir to $tag"
99 ( cd "$dir" && cvs up $datecmd -dAP $uptag )
101 echo "$progname: Checking out $dir from $tag"
102 cvs co $datecmd -P $cotag -d "$dir" "$module"
104 if [ $? != 0 ] ; then
105 error_modules="$dir $error_modules"
109 cvs_cmd build lustre-build "$buildtag"