<p>Am 27.03.2013 16:26 schrieb "Graeme Geldenhuys" <<a href="mailto:graeme@geldenhuys.co.uk">graeme@geldenhuys.co.uk</a>>:<br>
> > Anyway, I tested with the simplest pre-build script:<br>
> ><br>
> > git describe --always > REVISION.INC<br>
><br>
> If you run the 'git describe' from the command line, you would see the<br>
> output is simply the "version information" (no constant definition or<br>
> string quotes). So you need to place it in your source code with an<br>
> identifier as the Pascal language requires. So you need to do something<br>
> like the following in your code.<br>
><br>
> const<br>
> cGitRevision = '{$revision.inc}';</p>
<p>This won't work, because the string takes precedance over the directive.</p>
<p>But you could use the data2inc tool that cones with FPC to convert the returned data to a include file with constant.</p>
<p>Regards,<br>
Sven</p>