UPD: Another try to invoke svn2revisioninc before build. Use external file because otherwise building fails when svn2revisioninc is not found.

This commit is contained in:
cobines 2012-04-13 01:08:05 +00:00
commit 51f635d7ff
3 changed files with 17 additions and 5 deletions

6
src/_getsvnrev.cmd Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
# get DC revision under Linux
$1tools/svn2revisioninc ../ dcrevision.inc --c=dcRevision
echo "This command is need for successful exit code"

6
src/_getsvnrev.exe.cmd Executable file
View file

@ -0,0 +1,6 @@
rem @echo off
rem get DC revision under Windows
%1tools\svn2revisioninc.exe ..\ dcrevision.inc --c=dcRevision
echo "This command is need for successful exit code"

View file

@ -71,7 +71,7 @@
<CustomOptions Value="-dHEAPTRC -dHEAPTRC_EXTRA"/>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="$(LazarusDir)$MakeDir(tools)$MakeExe(svn2revisioninc) .. dcrevision.inc --c=dcRevision"/>
<Command Value="_getsvnrev$(ExeExt).cmd $MakeDir($(LazarusDir))"/>
<CompileReasons Run="False"/>
</ExecuteBefore>
</Other>
@ -115,7 +115,7 @@
</ConfigFile>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="$(LazarusDir)$MakeDir(tools)$MakeExe(svn2revisioninc) .. dcrevision.inc --c=dcRevision"/>
<Command Value="_getsvnrev$(ExeExt).cmd $MakeDir($(LazarusDir))"/>
<CompileReasons Run="False"/>
</ExecuteBefore>
</Other>
@ -159,7 +159,7 @@
<CustomOptions Value="-dNIGHTLY_BUILD"/>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="$(LazarusDir)$MakeDir(tools)$MakeExe(svn2revisioninc) .. dcrevision.inc --c=dcRevision"/>
<Command Value="_getsvnrev$(ExeExt).cmd $MakeDir($(LazarusDir))"/>
<CompileReasons Run="False"/>
</ExecuteBefore>
</Other>
@ -216,7 +216,7 @@
<CustomOptions Value="-dNIGHTLY_BUILD"/>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="$(LazarusDir)$MakeDir(tools)$MakeExe(svn2revisioninc) .. dcrevision.inc --c=dcRevision"/>
<Command Value="_getsvnrev$(ExeExt).cmd $MakeDir($(LazarusDir))"/>
<CompileReasons Run="False"/>
</ExecuteBefore>
</Other>
@ -1392,7 +1392,7 @@ end;"/>
</ConfigFile>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="$(LazarusDir)$MakeDir(tools)$MakeExe(svn2revisioninc) .. dcrevision.inc --c=dcRevision"/>
<Command Value="_getsvnrev$(ExeExt).cmd $MakeDir($(LazarusDir))"/>
<CompileReasons Run="False"/>
</ExecuteBefore>
</Other>