Fixing doxygen.cfg target. I'm not a makefile expert, so hopefully this correct.Teste...
[llvm-complete.git] / utils / cvsupdate
blobe5a58266327344e8a3c6f275e4af954bc18f0dde
1 #!/bin/csh -f
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".
8 # USAGE:
9 # cvsupdate ## normal run
10 # cvsupdate -n ## run grep commands on output of the last run of cvs
11 # cvsupdate -h ## usage information
14 set pstatus = 0
15 onintr cleanup
16 alias usage 'echo "USAGE: $0:t [-h][-n]"; set pstatus = 1; goto cleanup'
18 set doit = 1
19 set printnew = 0
20 unset options_done
21 while ( !( $?options_done ) && ($#argv > 0))
22 switch ($argv[1])
23 case -h :
24 usage
25 case -n :
26 set doit = 0; shift argv; breaksw
27 case -new :
28 set printnew = 1; shift argv; breaksw
29 default :
30 set options_done; breaksw
31 endsw
32 end
34 if ($doit == 1) then
35 /bin/mv -f cvs.out cvs.out.bak >&/dev/null
36 cvs update -P -d >& cvs.out
37 ## if ($status != 0) then
38 ## echo "ERROR: CVS update failed: "
39 ## cat cvs.out
40 ## exit 1
41 endif
42 else
43 echo ""; echo "NOT UPDATING FILES. RESULTS FROM LAST RUN:"; echo ""
44 endif
46 echo ""; echo " FILES UPDATED:"
47 grep '^[UP] ' cvs.out
49 echo ""; echo " UPDATE CONFLICTS OCCURRED FOR THE FOLLOWING FILES:"
50 grep '^C ' cvs.out
52 echo ""; echo " NEW FILES THAT NEED TO BE COMMITTED:"
53 grep '^[AR] ' cvs.out
55 echo ""; echo " FILES REMOVED FROM YOUR DIRECTORY:"
56 grep 'no longer in the repository' cvs.out
58 echo ""; echo " FILES SUCCESSFULLY MERGED (or locally modified):"
59 grep '^M ' cvs.out
61 echo ""; echo " NEW FILES AND DIRECTORIES:"
62 if ($printnew != 0) then
63 grep '^\?' cvs.out | & grep -v '\.bc' | grep -v Updating | grep -v cvsup | grep -v 'cvs.out' | grep -v gnumake.out | grep -v '\.mc$' | grep -v '\.s$' | grep -v '\.native'
64 else
65 echo '(USE "cvsupdate -n -new" TO SEE NEW FILES AND DIRECTORIES.)'
66 endif
68 echo ""
71 #=========================================================
72 # CODE TO BE EXECUTED IF INTERRUPT IS RECEIVED
73 #=========================================================
74 cleanup:
75 exit($pstatus)