support building outside of svn by improving svn revision polling script

This commit is contained in:
zeromus 2012-10-04 22:58:48 +00:00
parent 6c723e6815
commit 766b65fbc2
2 changed files with 9 additions and 0 deletions

View File

@ -1 +1,10 @@
@echo off
rem first, generate one with sed using no revision number, in case svn isnt available
"%~1..\sed.exe" s/\$WCREV\$/0/ < "%~1properties\svnrev_template" > "%~1properties\svnrev.cs"
rem try generating one from svn now. this will fail if svn is nonexistent, so...
"%~1..\SubWCRev.exe" "%~1\.." "%~1properties\svnrev_template" "%~1properties\svnrev.cs"
rem ... ignore the error
SET ERRORLEVEL=0

BIN
sed.exe Normal file

Binary file not shown.