mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-22 01:40:19 +00:00
036004d9cf
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1967 96395faa-99c1-11dd-bbfe-3dabce05a288
23 lines
756 B
Batchfile
23 lines
756 B
Batchfile
@echo off
|
|
|
|
:: Usage: preBuild.cmd ProjectSrcDir VspropsDir
|
|
::
|
|
:: ProjectSrcDir - $(ProjectDir)\.. - Top-level Directory of project source code.
|
|
|
|
SETLOCAL ENABLEEXTENSIONS
|
|
|
|
set mydir=%~dp0
|
|
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
|