From 48647124556cf4ab0fd7cb88e55d711e0435840d Mon Sep 17 00:00:00 2001
From: jacob <jacob>
Date: Tue, 11 Jan 2005 17:12:44 +0000
Subject: [PATCH]  - lustrecvs now updates and reexecs itself  - set
 LC_COLLATE=C otherwise [a-z] and [A-Z] don't work how we expect    them to

---
 build/buildcvs | 3 +--
 lustrecvs      | 7 +++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/build/buildcvs b/build/buildcvs
index 4d0a263426..acd89ecc6f 100644
--- a/build/buildcvs
+++ b/build/buildcvs
@@ -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"
 	;;
 
diff --git a/lustrecvs b/lustrecvs
index 9154775a00..30d6ff853a 100755
--- 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"
 
-- 
GitLab