~mapopa/flamerobin/master

« back to all changes in this revision

Viewing changes to update-revision-info.cmd

  • Committer: Michael Hieke
  • Date: 2013-10-01 13:26:15 UTC
  • Revision ID: git-v1:e9da0abc25ed37326db5da5051ea83df49d5441a
Fix quote handling in update-revision-info.cmd

* Always use quoted git hash because it may be empty
* git hash as read back from header file does already contain quotes, so
  compensate for that in comparison

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
rem extract "#define FR_GIT_HASH \"abcd123\"" line, and take header git hash from it
13
13
if exist %REVISIONINFOFILE% for /F " usebackq tokens=2,3 " %%i in (%REVISIONINFOFILE%) do set name=%%i&set value=%%j&call :read-header-info
14
 
rem @echo Header git hash %HEADER_GITHASH%
 
14
rem @echo Header git hash "%HEADER_GITHASH%"
15
15
 
16
16
if not exist %REVISIONINFOFILE% goto :write_header_file
17
 
if %HEADER_GITHASH% NEQ "%GITHASH%" goto :write_header_file
 
17
if "%HEADER_GITHASH%" NEQ ""%GITHASH%"" goto :write_header_file
18
18
goto :EOF
19
19
 
20
20