summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-09-15 16:45:10 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-09-15 16:45:10 +0000
commit5e1a0d96695b797b6f060a6d976551ff4c86d629 (patch)
tree733ae32377ff60ec36f6f9e60b695efd5c57171d /utils
parent631484c4e240f2846f2e8f9fce1427612e49843d (diff)
downloadllvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.tar.gz
llvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.tar.bz2
llvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.tar.xz
Check error condition after cvs returns. Also remove -c option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/cvsupdate7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/cvsupdate b/utils/cvsupdate
index fca274c810..2d21d21eda 100755
--- a/utils/cvsupdate
+++ b/utils/cvsupdate
@@ -1,4 +1,4 @@
-#!/bin/csh -f -c
+#!/bin/csh -f
#
# This script updates the entire tree, saves the output in cvs.out,
# and then separately prints out the files that had merge conflicts,
@@ -31,6 +31,11 @@ end
if ($doit == 1) then
/bin/mv -f cvs.out cvs.out.bak
cvs update -P -d >& cvs.out
+ if ($status != 0) then
+ echo "ERROR: CVS update failed: "
+ cat cvs.out
+ exit 1
+ endif
else
echo ""; echo "Not updating files."; echo ""
endif