info-cvs
[Top][All Lists]
Advanced

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

Re: Script Help


From: Todd Denniston
Subject: Re: Script Help
Date: Tue, 24 Feb 2009 11:59:09 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

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




reply via email to

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