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 > [email protected] > http://lists.nongnu.org/mailman/listinfo/enigma-devel _______________________________________________ Enigma-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/enigma-devel
