aboutsummaryrefslogtreecommitdiff
path: root/project/VS2010Express/update_git_rev.bat
diff options
context:
space:
mode:
authorCrystalP <CrystalP@xbmc.org>2011-01-14 20:55:53 -0500
committerCrystalP <CrystalP@xbmc.org>2011-01-14 22:17:43 -0500
commitf833d1ede1c7476265b6fdbde5eb29f55b776d67 (patch)
treeeb9fff95ced03695de3875b4dd76162c00c11c70 /project/VS2010Express/update_git_rev.bat
parentc67f101c90117edbfffaa0ef68703d8f7694e4c9 (diff)
[WIN32] fixed: git revision in build setup file name.
refactored the git version extraction code to be shared between the update_git_rev.bat and BuildSetup.bat scripts.
Diffstat (limited to 'project/VS2010Express/update_git_rev.bat')
-rw-r--r--project/VS2010Express/update_git_rev.bat29
1 files changed, 1 insertions, 28 deletions
diff --git a/project/VS2010Express/update_git_rev.bat b/project/VS2010Express/update_git_rev.bat
index 869a15815f..db34762480 100644
--- a/project/VS2010Express/update_git_rev.bat
+++ b/project/VS2010Express/update_git_rev.bat
@@ -6,34 +6,7 @@ IF EXIST %REV_FILE% (
del %REV_FILE%
)
-rem Use tgit.exe of TortoiseGit if available
-SET GITEXE="tgit.exe"
-%GITEXE% --version > NUL 2>&1
-if errorlevel 1 goto :notgit
-GOTO :extract
-
-:notgit
-
-rem Fallback on msysgit, which must have been added manually to the path.
-SET GITEXE="git.exe"
-%GITEXE% --help > NUL 2>&1
-if errorlevel 1 goto :nogit
-GOTO :extract
-
-:nogit
-
-rem Failure - no git tool to extract information.
-SET GIT_REV=Unknown
-GOTO :extracted
-
-:extract
-
-set oldCurrentDir=%CD%
-cd ..\..
-FOR /F "tokens=1 delims= " %%A IN ('%GITEXE% rev-parse --short HEAD') DO SET GIT_REV=%%A
-cd %oldCurrentDir%
-
-:extracted
+CALL ..\Win32BuildSetup\extract_git_rev.bat
copy "%TEMPLATE%" "%REV_FILE%"