mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
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:
parent
19e6bf2a9f
commit
51f635d7ff
3 changed files with 17 additions and 5 deletions
6
src/_getsvnrev.cmd
Executable file
6
src/_getsvnrev.cmd
Executable 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
6
src/_getsvnrev.exe.cmd
Executable 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"
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue