X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustrecvs;h=4436462b5c895e1fdcddc9f88a8b20e414ec0a6e;hb=f6549dd2a2e286637a9b76ae5de40567c534b1ef;hp=9154775a00a3fbc3cf0219b6ffe8cb35c34e6e4a;hpb=3e323ee14b59f5c2340b603406173c9f35159a88;p=fs%2Flustre-release.git diff --git a/lustrecvs b/lustrecvs index 9154775..4436462 100755 --- a/lustrecvs +++ b/lustrecvs @@ -1,5 +1,6 @@ #!/bin/sh +LC_COLLATE="C" progname="${0##*/}" warn () @@ -18,13 +19,29 @@ fatal () usage () { cat < + where is a tag of the lustre-core module 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 + +[ "$1" = "-r" ] && shift + buildtag="HEAD" lustretag="$1" +shift + +if [ "$*" ] ; then + usage >&2 + exit 1 +fi + case "$lustretag" in '') @@ -67,7 +84,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 }