| 1 |
#!/bin/ksh |
| 2 |
# |
| 3 |
# Runs the cvs2cl tool (available from http://www.red-bean.com/cvs2cl/) to give |
| 4 |
# changes in all the directories we are interested in. |
| 5 |
# |
| 6 |
# Note that you can get help on cvs2cl using: "perldoc cvs2cl" |
| 7 |
# |
| 8 |
# Script should be invoked like this: cvschanges '2004-03-01<2004-04-01' |
| 9 |
# |
| 10 |
# Some day I will add user friendly options to do months automatically....note from |
| 11 |
# the above that you need to include the first day of the _next_ month to get all of |
| 12 |
# the current month...a cvs date range oddity. |
| 13 |
# |
| 14 |
|
| 15 |
changes_file=`pwd` |
| 16 |
|
| 17 |
# We need to run it on several directories..... |
| 18 |
acedb_cvs="$HOME/acedb/CODE" |
| 19 |
acedb_dirs='Ace-Conn Ace-docs Ace-python acedb build tools' |
| 20 |
acedb_dirs='acedb tools' |
| 21 |
zmap_cvs="$HOME/ZMap/ZMap" |
| 22 |
zmap_dirs='doc src' |
| 23 |
|
| 24 |
# Need to make sure the date stuff is passed correctly to cvs, format must be: |
| 25 |
# |
| 26 |
# cvs2cl.pl -l "-d'2004-03-01<2004-04-01'" [other args] |
| 27 |
# |
| 28 |
|
| 29 |
date="-d'"$1"'" |
| 30 |
|
| 31 |
# do acedb stuf... |
| 32 |
cd $acedb_cvs |
| 33 |
print "Issuing: cvs2cl --chrono -f $changes_file'/ChangeLog.ACEDB' -l $date $acedb_dirs" |
| 34 |
|
| 35 |
cvs2cl --chrono -f $changes_file'/ChangeLog.ACEDB' -l $date $acedb_dirs |
| 36 |
|
| 37 |
#do Zmap stuf... |
| 38 |
# could use "--accum" to put zmap stuff in same change file.... |
| 39 |
|
| 40 |
cd $zmap_cvs |
| 41 |
print "Issuing: cvs2cl --chrono -f $changes_file'/ChangeLog.ZMAP' -l $date $zmap_dirs" |
| 42 |
|
| 43 |
cvs2cl --chrono -f $changes_file'/ChangeLog.ZMAP' -l $date $zmap_dirs |
| 44 |
|
| 45 |
exit 0 |