Re: Script Help
Todd Denniston <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Rez P wrote, On 02/23/2009 07:41 PM:
> I'm curious as to how other build engineers keep a log,
> do you run cvs stat or cvs log also?
> Is there a cvs command to print only the path and revsion
> number without resotry to scripting?
>
I assume you are trying to have a method to pull back from CVS exactly what
was built for a release.
1) use tags, they will make your life easier and sanity last longer.
2) use the following method:
cd /tmp/
cvs checkout baselinename
cvs tag build_tag_bla baselinename
cvs release -d baselinename
cd /where/you/usualy/make/release/builds
cvs checkout -rbuild_tag_bla baselinename
#and for your method of sanity, even though it is no longer needed.
cvs -f stat | grep "Repository revision" | gawk '{print $4 " " $3}'
cd baselinename
make\ant\buildsystem world
sleep better. :)
I have posted partial scripts to this list in the past for doing part of this
work.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter