From: jacob Date: Tue, 11 Jan 2005 17:12:44 +0000 (+0000) Subject: - lustrecvs now updates and reexecs itself X-Git-Tag: 1.3.4~196 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=48647124556cf4ab0fd7cb88e55d711e0435840d;p=fs%2Flustre-release.git - lustrecvs now updates and reexecs itself - set LC_COLLATE=C otherwise [a-z] and [A-Z] don't work how we expect them to --- diff --git a/build/buildcvs b/build/buildcvs index 4d0a263..acd89ec 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 9154775..30d6ff8 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"