Whamcloud - gitweb
- lustrecvs now updates and reexecs itself
[fs/lustre-release.git] / lustrecvs
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"