avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Code version timestamp


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Code version timestamp
Date: Wed, 14 Sep 2005 12:48:14 +0200 (MET DST)

address@hidden wrote:

> I would like to display a "code version" (date/time or incremental
> number) during init on an LCD display.

If you're using CVS, you can get the date of the last checkin of
a particular module by

const char foo[] = "$Date$";

CVS will replace that by something like

const char foo[] = "$Date: 2004/03/27 20:01:37 $";

If you place that in a single file of its own that you're only cvs
committing via "cvs commit -f" (forced commit) once you want to switch
the date code, you'll basically get what you want.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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