support building outside of svn by improving svn revision polling script
This commit is contained in:
parent
6c723e6815
commit
766b65fbc2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue