[Gambas-user] gbc3-gb_error.o compiling rev #5670

Benoît Minisini gambas at ...1...
Fri May 24 23:33:35 CEST 2013


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




More information about the User mailing list