mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Hg:
enable newline normalization get revision number via `hg svn info` for svnrev.h ignore incremental/generated binary files (windows/VS at least) leave a comment if some files need native eol set in svnprops git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5637 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@ -98,7 +98,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@ -171,7 +171,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@ -244,7 +244,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@ -318,7 +318,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@ -388,7 +388,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\src\svnrev_template.h" "$(ProjectDir)\src\svnrev.h""
|
||||
CommandLine="set outfile="$(ProjectDir)\Src\svnrev.h"
"$(ProjectDir)SubWCRev.exe" "$(SolutionDir)\." "$(ProjectDir)\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
)
"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
|
Reference in New Issue
Block a user