aboutsummaryrefslogtreecommitdiff
path: root/project/VS2010Express/update_git_rev.bat
blob: bc8954d61a8d84442e302dd3f62b83930f406f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off

SET TEMPLATE=..\..\xbmc\win32\git_rev.tmpl
SET TEMP=..\..\xbmc\win32\git_rev.tmp
SET REV_FILE=..\..\xbmc\win32\git_rev.h
IF EXIST %TEMP% (
  del %TEMP%
)

CALL ..\Win32BuildSetup\extract_git_rev.bat

copy "%TEMPLATE%" "%TEMP%"

echo #define GIT_REV "%GIT_REV%" >> %TEMP%

fc /B %TEMP% %REV_FILE% > nul
IF ERRORLEVEL 1 (
  IF EXIST %REV_FILE% (
    del %REV_FILE%
  )
  COPY %TEMP% %REV_FILE%
)

DEL %TEMP%