Whamcloud - gitweb
changed from warn to error when ext3 attributes are not enabled in the kernel
[fs/lustre-release.git] / lustrecvs
index 9154775..b2b21f5 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+LC_COLLATE="C"
 progname="${0##*/}"
 
 warn ()
@@ -23,6 +24,13 @@ Usage: $progname lustretag
 EOF
 }
 
+if [ -z "$LUSTRECVS_UPDATED" ] ; then
+    echo "$progname: updating lustrecvs"
+    cvs up -l || fatal 1 "Error updating lustrecvs"
+    export LUSTRECVS_UPDATED=yes
+    exec "$0" "$@"
+fi
+
 buildtag="HEAD"
 lustretag="$1"
 
@@ -67,7 +75,7 @@ cvs_cmd ()
        ( cd "$dir" && cvs up -dP $uptag )
     else
        echo "$progname: Checking out $dir from $tag"
-       cvs co $cotag -d "$dir" "$module"
+       cvs co -P $cotag -d "$dir" "$module"
     fi
 }