mirror of https://github.com/PCSX2/pcsx2.git
23 lines
758 B
Batchfile
23 lines
758 B
Batchfile
|
@echo off
|
||
|
|
||
|
:: Usage: preBuild.cmd ProjectSrcDir VspropsDir
|
||
|
::
|
||
|
:: ProjectSrcDir - $(ProjectDir)\.. - Top-level Directory of project source code.
|
||
|
|
||
|
SETLOCAL ENABLEEXTENSIONS
|
||
|
|
||
|
set mydir=%~0\..\
|
||
|
SubWCRev.exe "%~1" "%mydir%\svnrev_template.h" "%CD%\svnrev.h"
|
||
|
if %ERRORLEVEL% NEQ 0 (
|
||
|
echo Automatic revision update unavailable, using generic template instead.
|
||
|
echo You can safely ignore this message - see svnrev.h for details.
|
||
|
copy /Y "%mydir%\svnrev_unknown.h" "%CD%\svnrev.h"
|
||
|
copy /Y "%mydir%\postBuild.unknown" "%CD%\postBuild.cmd"
|
||
|
) else (
|
||
|
SubWCRev.exe "%~1" "%mydir%\postBuild.tmpl" "%CD%\postBuild.cmd" > NUL
|
||
|
)
|
||
|
|
||
|
ENDLOCAL
|
||
|
:: Always return an errorlevel of 0 -- this allows compilation to continue if SubWCRev failed.
|
||
|
exit 0
|