Whamcloud - gitweb
* fix cvs up for HEAD branches
[fs/lustre-release.git] / lustrecvs
index 5c9f0ab..70ac2a0 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -23,11 +23,8 @@ Usage: $progname lustretag
 EOF
 }
 
-# portalstag="HEAD"
 buildtag="HEAD"
-portalstag="HEAD"
 lustretag="$1"
-libsysiotag="head_0607"
 
 case "$lustretag" in
     '')
@@ -43,16 +40,8 @@ case "$lustretag" in
     # this is the branch table
     # keep this list sorted alphabetically!
 
-    b1_4_bgl)
-       portalstag="b1_4_bgl"
-       ;;
-
-    b_newsysio | b_sec)
-        libsysiotag="head_0809"
-       ;;
-
-    b_port_step)
-        portalstag="b_port_step"
+    *)
+        buildtag="HEAD"
        ;;
 
 esac
@@ -62,22 +51,30 @@ cvs_cmd ()
     local dir="$1"
     local module="$2"
     local tag="$3"
-    local cvstag=""
+    local cotag=""
+    local update=""
 
-    if [ "$tag" != "HEAD" ] ; then
-       cvstag="-r $tag"
+    if [ "$tag" = "HEAD" ] ; then
+       cotag=""
+       uptag="-A"
+    else
+       cotag="-r $tag"
+       uptag="-r $tag"
     fi
 
     if [ -d "$dir" ] ; then
        echo "$progname: Updating $dir to $tag"
-       ( cd "$dir" && cvs up $cvstag )
+       ( cd "$dir" && cvs up $uptag )
     else
        echo "$progname: Checking out $dir from $tag"
-       cvs co $cvstag -d "$dir" "$module"
+       cvs co $cotag -d "$dir" "$module"
     fi
 }
 
 cvs_cmd build lustre-build "$buildtag"
-cvs_cmd libsysio libsysio "$libsysiotag"
-cvs_cmd portals portals "$portalstag"
-cvs_cmd lustre lustre-core "$lustretag"
+
+if [ -f build/buildcvs ] ; then
+    . build/buildcvs
+else
+    fatal 1 "build/buildcvs does not exist; not updating other modules."
+fi