[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Enigma-devel] Re: SVN revision number
From: |
Till Harbaum / Lists |
Subject: |
Re: [Enigma-devel] Re: SVN revision number |
Date: |
Thu, 28 Feb 2008 22:03:16 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 0.20070907.709405) |
Hi,
if you don't like the fact that there's some source file being auto generated
you can of course always pass the output of svnversion directly into the
compiler. I don't even want you to parse anything, so basically something not
much more complex than "-D`svnversion` would do the trick.
Till
Am Donnerstag 28 Februar 2008 schrieb Daniel Heck:
> Ronald Lamprecht wrote:
> > svnversion is the right tool.
> >
> > But it does not really help, as we have a classical "hen and egg"
> > problem:
> >
> > You need to commit your changes and you need to update to get correct
> > svnversion output. Now you need to start make again to generate the
> > source which results in a modified source which need to be commited,...
> >
> > Furtheron this modified piece of source would be a steady source of
> > merge errors.
>
> Why would you want to commit the file containing the version number
> anyway? That is clearly the wrong approach, for all the reasons you
> list. I would simply run svnversion every single time make is invoked
> and link the resulting version string into the program.
>
> - Daniel
>
>
> _______________________________________________
> Enigma-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/enigma-devel