@echo off
SubWCRev.exe %1 %2\svnrev_template.h %1\svnrev.h
if not ERRORLEVEL 0 (
    echo Automatic revision update unavailable, using generic template instead.
    echo You can safely ignore this message - see svnrev.h for details.
    copy /Y %3\svnrev_unknown.h %2\svnrev.h
)
set ERRORLEVEL=0
