[Top][All Lists]

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

Re: [OFT] scripting removal of $Id:

From: Frederic Brehm
Subject: Re: [OFT] scripting removal of $Id:
Date: Fri, 20 Feb 2004 11:29:03 -0500

At 10:57 AM 2/20/2004, Euan Guttridge wrote:
Has anybody come across a shell script to parse a large number of text
files, removing the CVS keyword replacement lines (all containing $Id:)?

For example

 import javax.servlet.http.HttpServletRequest;
  * Test class for blah
  * $Id:,v 2004/01/21 10:03:04 jwilson Exp $

If you have access to the repository, then you can use cvs export. It will turn that Id line into

  * Id:,v 2004/01/21 10:03:04 jwilson Exp

(the $ characters are removed)

There's also a -k switch (check the manual) you can use with cvs update(?) or checkout that would leave it

  * $Id$

Of course, if this is third party source, then you need a script.


Frederic W. Brehm, Sarnoff Corporation,

reply via email to

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