Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fix for sanityN.sh test_16 from Oleg (patch from #4982)
[fs/lustre-release.git]
/
lustrecvs
diff --git
a/lustrecvs
b/lustrecvs
index
30d6ff8
..
4436462
100755
(executable)
--- a/
lustrecvs
+++ b/
lustrecvs
@@
-19,19
+19,29
@@
fatal ()
usage ()
{
cat <<EOF
usage ()
{
cat <<EOF
-Usage: $progname
lustretag
- where
lustretag
is a tag of the lustre-core module
+Usage: $progname
<lustretag>
+ where
<lustretag>
is a tag of the lustre-core module
EOF
}
if [ -z "$LUSTRECVS_UPDATED" ] ; then
EOF
}
if [ -z "$LUSTRECVS_UPDATED" ] ; then
- cvs up "$0" || fatal 1 "Error updating lustrecvs"
+ echo "$progname: updating lustrecvs"
+ cvs up -l || fatal 1 "Error updating lustrecvs"
export LUSTRECVS_UPDATED=yes
exec "$0" "$@"
fi
export LUSTRECVS_UPDATED=yes
exec "$0" "$@"
fi
+[ "$1" = "-r" ] && shift
+
buildtag="HEAD"
lustretag="$1"
buildtag="HEAD"
lustretag="$1"
+shift
+
+if [ "$*" ] ; then
+ usage >&2
+ exit 1
+fi
+
case "$lustretag" in
'')
case "$lustretag" in
'')
@@
-74,7
+84,7
@@
cvs_cmd ()
( cd "$dir" && cvs up -dP $uptag )
else
echo "$progname: Checking out $dir from $tag"
( 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
}
fi
}