mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
make generation of svnrev.h slightly more sane, by using vbscript instead of just batch script.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5932 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
@ -146,7 +146,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
@ -263,7 +263,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
@ -374,7 +374,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
@ -485,7 +485,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
@ -600,7 +600,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="set outfile="$(ProjectDir)..\Common\Src\svnrev.h"
"$(ProjectDir)..\Common\SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)..\Common\Src\svnrev_template.h" %outfile%
if errorlevel 1 (goto checkhg) else (goto VCEnd)
:checkhg
for /f "usebackq tokens=1,* skip=3" %%i in (`hg svn info`) do (
echo Hg: Working copy at SVN revision %%j
echo #define SVN_REV %%j > %outfile%
echo #define SVN_REV_STR "%%j" >> %outfile%
goto VCEnd
)
"
|
||||
CommandLine="cscript /nologo "..\Common\make_svnrev.h.vbs""
|
||||
ExcludedFromBuild="false"
|
||||
/>
|
||||
<Tool
|
||||
|
Reference in New Issue
Block a user