[Lazarus] embed git version info

Sven Barth pascaldragon at googlemail.com
Thu Mar 28 09:44:00 CET 2013


Am 27.03.2013 23:19, schrieb Graeme Geldenhuys:
> On 2013-03-27 17:59, Sven Barth wrote:
>>> const
>>>    cGitRevision = '{$revision.inc}';
>> This won't work, because the string takes precedance over the directive.
> Probably why my original version build script generates the whole line
> with identifier.
>
> What about the following...
>
>   const
>     cGitRevision = '''' + {$revision.inc} + '''';
That should work :)
>
> Or are expressions not allowed in constant declarations either? Anyway,
> I think we gave enough hints for the original poster to find a suitable
> solution. I was never pro to spoon-feeding programmers. ;-)
Me neither...

Regards,
Sven




More information about the Lazarus mailing list