Tweaked Build.bat

This commit is contained in:
Birunthan Mohanathas 2012-09-19 20:15:00 +03:00
parent 678ac501ad
commit 797fd26fa8

View File

@ -44,7 +44,7 @@ set GIT=%GIT:Program Files\=Program Files (x86)\%
if not exist "%GIT%" echo ERROR: git.exe not found & goto END if not exist "%GIT%" echo ERROR: git.exe not found & goto END
:GITFOUND :GITFOUND
set /a VERSION_REVISION=0 set /a VERSION_REVISION=0
for /f "usebackq delims= " %%G in (`"%GIT%" rev-list --all`) do set /a VERSION_REVISION+=1 for /f "usebackq delims= " %%G in (`"%GIT%" rev-list --all --count`) do set VERSION_REVISION=%%G
goto UPDATEVERSION goto UPDATEVERSION
:: svn :: svn