Whamcloud - gitweb
- lustrecvs now updates and reexecs itself
authorjacob <jacob>
Tue, 11 Jan 2005 17:12:44 +0000 (17:12 +0000)
committerjacob <jacob>
Tue, 11 Jan 2005 17:12:44 +0000 (17:12 +0000)
 - set LC_COLLATE=C otherwise [a-z] and [A-Z] don't work how we expect
   them to

build/buildcvs
lustrecvs

index 4d0a263..acd89ec 100644 (file)
@@ -1,5 +1,4 @@
 # This file is sourced by lustre/lustrecvs
-set -vx
 
 portalstag="HEAD"
 libsysiotag="LIBSYSIO_HEAD_20040809"
@@ -45,7 +44,7 @@ case "$lustretag" in
        portalstag="b_port_step"
        ;;
 
-    v1_[0-3]*|v1_4_0*)
+    v1_[0-3]*|v1_4_0*|[A-Z]*)
        portalstag="$lustretag"
        ;;
 
index 9154775..30d6ff8 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+LC_COLLATE="C"
 progname="${0##*/}"
 
 warn ()
@@ -23,6 +24,12 @@ Usage: $progname lustretag
 EOF
 }
 
+if [ -z "$LUSTRECVS_UPDATED" ] ; then
+    cvs up "$0" || fatal 1 "Error updating lustrecvs"
+    export LUSTRECVS_UPDATED=yes
+    exec "$0" "$@"
+fi
+
 buildtag="HEAD"
 lustretag="$1"