gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [newbie] Is it possible to put in a source file the


From: Jan Hudec
Subject: Re: [Gnu-arch-users] [newbie] Is it possible to put in a source file the date of last tree commit?
Date: Wed, 4 Feb 2004 11:40:20 +0100
User-agent: Mutt/1.5.5.1+cvs20040105i

On Tue, Feb 03, 2004 at 19:18:55 +0100, David MENTRE wrote:
> Hello,
> 
> I'm new to GNU Arch, so excuse my newbie question. Other developers and
> myself are trying Arch on two free software projects (DemExp and
> Axiom). I've looked at the Wiki, Arch web pages and Google before asking
> my question, but it is still possible that I have missed something.
> 
> I would like, when doing a commit, to automatically put the commit date
> and time in a source file of my project. I would like something like
> $Date$ tag of CVS, but for the commit of the whole tree and not for the
> file containing the $Date$ tag in CVS. In other words, the file
> containing the hypothetical $arch-date$ tag would be modified and
> updated at each commit.
> 
> Is it possible to do that with GNU Arch? If yes, how?

So far, noone seem to have mentioned the automatic changelog facility.
It it possible to have a file with a special tag (created by changelog
subcommand), that gets information from commit log prepended on each
commit. Thus you can have:
    1) The information available within the tree even if you strip the
       {arch} directory.
    2) Get the information in configure script (arch logs are easier to
       parse, however) and put it wherever you want.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec 
<address@hidden>




reply via email to

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