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
b=7214
[fs/lustre-release.git]
/
lustrecvs
diff --git
a/lustrecvs
b/lustrecvs
index
4436462
..
bd81075
100755
(executable)
--- a/
lustrecvs
+++ b/
lustrecvs
@@
-63,6
+63,7
@@
case "$lustretag" in
esac
esac
+error_modules=
cvs_cmd ()
{
dir="$1"
cvs_cmd ()
{
dir="$1"
@@
-74,9
+75,12
@@
cvs_cmd ()
if [ "$tag" = "HEAD" ] ; then
cotag=""
uptag="-A"
if [ "$tag" = "HEAD" ] ; then
cotag=""
uptag="-A"
- el
se
+ el
if [ "$tag" ] ; then
cotag="-r $tag"
uptag="-r $tag"
cotag="-r $tag"
uptag="-r $tag"
+ else
+ # silently skip if no tag was specified
+ return
fi
if [ -d "$dir" ] ; then
fi
if [ -d "$dir" ] ; then
@@
-86,6
+90,9
@@
cvs_cmd ()
echo "$progname: Checking out $dir from $tag"
cvs co -P $cotag -d "$dir" "$module"
fi
echo "$progname: Checking out $dir from $tag"
cvs co -P $cotag -d "$dir" "$module"
fi
+ if [ $? != 0 ] ; then
+ error_modules="$dir $error_modules"
+ fi
}
cvs_cmd build lustre-build "$buildtag"
}
cvs_cmd build lustre-build "$buildtag"
@@
-95,3
+102,7
@@
if [ -f build/buildcvs ] ; then
else
fatal 1 "build/buildcvs does not exist; not updating other modules."
fi
else
fatal 1 "build/buildcvs does not exist; not updating other modules."
fi
+
+if [ "$error_modules" ] ; then
+ fatal 1 "There were errors checking out the following directories: $error_modules"
+fi