make subwcrev less noisy

This commit is contained in:
zeromus 2014-05-24 02:22:29 +00:00
parent 5f314c531e
commit c79b143135
1 changed files with 15 additions and 8 deletions

View File

@ -18,25 +18,32 @@ SET ERRORLEVEL=0
rem if we didnt even have a svnrev, then go ahead and copy it
if not exist %SVNREV% (
copy /y %TEMPFILE% %SVNREV%
@copy /y %TEMPFILE% %SVNREV% > NUL
) else if exist %TEMPFILE% (
rem check to see whether its any different, so we dont touch unchanged files
fc /b %TEMPFILE% %SVNREV% > nul
if ERRORLEVEL 0 (
echo Not touching unchanged svnrev file
if ERRORLEVEL 2 (
echo Updated svnrev file
@copy /y %TEMPFILE% %SVNREV% > NUL
goto SKIP
)
if ERRORLEVEL 1 (
echo Updated svnrev file
@copy /y %TEMPFILE% %SVNREV%
)
if ERRORLEVEL 2 (
echo Updated svnrev file
@copy /y %TEMPFILE% %SVNREV%
@copy /y %TEMPFILE% %SVNREV% > NUL
goto SKIP
)
if ERRORLEVEL 0 (
echo Not touching unchanged svnrev file
goto SKIP
)
) else (
echo Ran into a weird error writing subwcrev output to tempfile: %TEMPFILE%
)
:SKIP
rem <zero> make subwcrev process more reliable. sorry for leaving so many tempfiles, but life's too short
rem del %TEMPFILE%