[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a barebone stripped off list of files changed between2

From: Todd Denniston
Subject: Re: How do I get a barebone stripped off list of files changed between2 builds?
Date: Tue, 12 Jul 2005 15:39:06 -0500

S I wrote:
> Hi
> I'm trying to get a stripped down list of files modified and committed
> between 2 builds or a build and my working folder in CVS.  I would just like
> to see the path/filename only.  Compare it to a list received from the
> developers to verify we're in synch, do the build and deliver their
> corresponding .class files.
> Many of the CVS commands (log, tag, history, diff, etc) generate way more
> than I need.  Do I need to write scripts that parse out what I need?  Is
> there a cvs command to do this so I can avoid scripting?
> For instance I did the following command:
> cvs history -ac -D yesterday  >cvsHist1.txt
> And this is yet the closest I've got to what I needed.
I am usually happy with what cvs2cl gives me. I do however have a script
which does:
PREVIOUS_DATE="`ls -l --full-time $OUTFILE  2>/dev/null| \
awk '{print $7 \" \" $8 \" \" $9 \" \" $10}'`"

cvs his -calD "$PREVIOUS_DATE" |sort -rb -k 7,7 |\
sort -mub -k 7,7|sort -b -k 8,8 >>$TMP_FILE

the sorts get rid of redundant information to hopefully just show the last
change of each file.

$OUTFILE is a file that was created when the script was last ran, and well I
expect you know what $TMP_FILE is. It still has a lot of information in it,
but I find that info useful, I believe if you take $TMP_FILE and run it
through the following awk it will have just what you want:

 cat $TMP_FILE|awk '{print $8 "/" $7 }'

as I indicated I only use it to see what has changed between runs, more of a
disaster recovery tool than anything (and yes I have _used it for that_),
now that I have cvs2cl and am using CVS vs SCCS.
Your biggest trick is either creating a file with the date you want, or
building up the $PREVIOUS_DATE string by hand.

> Thanks
> Steve

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter

reply via email to

[Prev in Thread] Current Thread [Next in Thread]