2009-02-06 19:52:59 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
rem Usage: preBuild.cmd ProjectSrcDir VspropsDir
|
|
|
|
rem
|
|
|
|
rem ProjectSrcDir - $(ProjectDir)\.. - Directory of project source code.
|
|
|
|
rem VspropsDir - $(PrjectDir)\vsprops - Directory of this script and its counterparts.
|
|
|
|
|
|
|
|
SubWCRev.exe %1 %2\svnrev_template.h %1\svnrev.h
|
2009-02-07 15:14:23 +00:00
|
|
|
if %ERRORLEVEL% NEQ 0 (
|
2009-02-06 19:52:59 +00:00
|
|
|
echo Automatic revision update unavailable, using generic template instead.
|
|
|
|
echo You can safely ignore this message - see svnrev.h for details.
|
|
|
|
copy /Y %2\svnrev_unknown.h %1\svnrev.h
|
|
|
|
copy /Y %2\postBuild.unknown %2\postBuild.cmd
|
|
|
|
) else (
|
|
|
|
SubWCRev.exe %1 %2\postBuild.tmpl %2\postBuild.cmd
|
|
|
|
)
|
|
|
|
|
|
|
|
rem Clear the error level -- this allows compilation to continue if SubWCRev failed.
|
|
|
|
|
|
|
|
set ERRORLEVEL=0
|