3 # This script updates the entire tree, saves the output in cvs.out,
4 # and then separately prints out the files that had merge conflicts,
5 # those that were merged successfully, and those that are new.
6 # Note that this script uses "cvs update -P -d".
9 # cvsupdate ## normal run
10 # cvsupdate -n ## run grep commands on output of the last run of cvs
11 # cvsupdate -h ## usage information
16 alias usage 'echo "USAGE: $0:t [-h][-n]"; set pstatus = 1; goto cleanup'
20 while ( !( $?options_done ) && ($#argv > 0))
25 set doit = 0; shift argv; breaksw
27 set options_done; breaksw
32 /bin/mv -f cvs.out cvs.out.bak
33 cvs update -P -d >& cvs.out
35 echo ""; echo "Not updating files."; echo ""
38 echo ""; echo " UPDATE CONFLICTS OCCURRED FOR THE FOLLOWING FILES (OR NONE):"
41 echo ""; echo " FILES SUCCESSFULLY MERGED:"
42 grep '^M' cvs.out | grep -v Merging
44 echo ""; echo " NEW FILES AND DIRECTORIES:"
45 grep '^\?' cvs.out | & grep -v '/De[bp]' | grep -v '\.bc' | grep -v /Release | grep -v Updating | grep -v cvsup | grep -v 'cvs.out' | grep -v gnumake.out | grep -v tools/as/as | grep -v tools/dis/dis | grep -v tools/opt/opt | grep -v tools/analyze/analyze
50 #=========================================================
51 # CODE TO BE EXECUTED IF INTERRUPT IS RECEIVED
52 #=========================================================