aboutsummaryrefslogtreecommitdiff
path: root/project/VS2010Express/update_svn_rev.bat
diff options
context:
space:
mode:
Diffstat (limited to 'project/VS2010Express/update_svn_rev.bat')
-rw-r--r--project/VS2010Express/update_svn_rev.bat46
1 files changed, 0 insertions, 46 deletions
diff --git a/project/VS2010Express/update_svn_rev.bat b/project/VS2010Express/update_svn_rev.bat
deleted file mode 100644
index 707f9fef37..0000000000
--- a/project/VS2010Express/update_svn_rev.bat
+++ /dev/null
@@ -1,46 +0,0 @@
-@echo off
-rem subwcrev is included in the tortoise svn client: http://tortoisesvn.net/downloads
-SET REV_FILE=..\..\xbmc\win32\svn_rev.h
-IF EXIST %REV_FILE% (
- del %REV_FILE%
-)
-
-IF EXIST "..\..\.svn" (
- subwcrev ../.. ../../xbmc/win32/svn_rev.tmpl %REV_FILE%
- goto :eof
-)
-
-SetLocal EnableDelayedExpansion
-
-set oldCurrentDir=%CD%
-IF EXIST "..\..\.git" (
- cd ..\..
- FOR /F "delims=: skip=8 tokens=2*" %%a IN ('git svn info') DO (call :set_var %%a %%b)
-)
-chdir /d %oldCurrentDir%
-
-copy "..\..\xbmc\win32\svn_rev_git.tmpl" "%REV_FILE%"
-
-if "%REV%"=="" set REV=Unknown
-if "%REV_DATE%"=="" set REV_DATE=Unknown
-
-echo #define SVN_REV "%REV%" >> %REV_FILE%
-echo #define SVN_DATE "%REV_DATE%" >> %REV_FILE%
-
-echo #endif >> %REV_FILE%
-
-goto :eof
-
-:set_var
-IF "%REV%"=="" (
- SET REV=%1
-) ELSE IF "%REV_DATE%"=="" (
- call :set_var_2 %1 %2 %3 %4 %5 %6 %7 %8
-)
-goto :eof
-
-:set_var_2
-SET REV_DATE=%1 %2:%3 %4 %5, %6 %7 %8^)
-goto :eof
-
-:eof \ No newline at end of file