[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
input:
package com.shop.backoffice;
import javax.servlet.http.HttpServletRequest;
/**
* Test class for blah
* $Id: blah.java,v 1.2.2.3 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: blah.java,v 1.2.2.3 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.
Fred
_______________________________________________________________
Frederic W. Brehm, Sarnoff Corporation, http://www.sarnoff.com/