Le 23/05/2013 14:23, Tobias Boege a écrit :
>>
>> Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify
>> the compilation flag for defining a constant. You'd rather use the
>> 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED).
>>
>
> But when is this file regenerated? Only by configure, correct? This would
> mean that I have to issue a ./configure everytime I want the new correct
> version number from gbx3 which is less desirable, in my opinion, than
> changing a compiler flag.
>
> Regards,
> Tobi
>

You get a point there. But you must find a way to get the svn version 
only when it changes. For example, we can imagine adding a special 
makefile rule that computes the svn version and put it in its custom 
header file. This rule will depend on the modification time of the 
/trunk/.svn directory (if it is possible).

What do you think?

-- 
Benoît Minisini

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to