diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-15 16:45:10 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-15 16:45:10 +0000 |
commit | 5e1a0d96695b797b6f060a6d976551ff4c86d629 (patch) | |
tree | 733ae32377ff60ec36f6f9e60b695efd5c57171d /utils/cvsupdate | |
parent | 631484c4e240f2846f2e8f9fce1427612e49843d (diff) | |
download | external_llvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.zip external_llvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.tar.gz external_llvm-5e1a0d96695b797b6f060a6d976551ff4c86d629.tar.bz2 |
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/cvsupdate')
-rwxr-xr-x | utils/cvsupdate | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/cvsupdate b/utils/cvsupdate index fca274c..2d21d21 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 |