info-cvs
[Top][All Lists]
Advanced

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

Re: How to change keyword expansion format


From: Todd Denniston
Subject: Re: How to change keyword expansion format
Date: Thu, 24 Jun 2004 09:29:23 -0500

"Mark D. Baushke" wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ivan Ivanov <address@hidden> writes:
> 
> > I am using quite successfully CVS Keywords and the
> > keyword expansion format and I have some minor
> > questions on these useul feature:
<SNIP>
> > Touch is not the exact word, because we do not
> > want to change the last commit date, we simply
> > wants when we create distibution $Date$ be
> > expanded to the current date. Any ideas?
> 
> It would appear that you want a program of some
> sort (possibly a perl script) to be run on your
> sources sometime after you do a checkout.
> 
>         -- Mark
If it is C or C++ code (and using the gnu compiler, not sure they are standard
C) the following line might do what he wants.
fprintf(stderr, "\n \t compiled %s %s\n", __DATE__ , __TIME__ );

-- 
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]