Edit

kc3-lang/angle/src/commit_id.bat

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2013-12-05 11:48:38
    Hash : 3929c1c4
    Message : Store the commit date in version.h, and in the DLL properties. This will allow Chrome, or other apps who reference ANGLE internally, to pull chronological version information about ANGLE. Change-Id: I7dbd5b60b533f176b34f7248d70a1d9757ae99d6 Reviewed-on: https://chromium-review.googlesource.com/179100 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Reviewed-by: Nicolas Capens <nicolascapens@chromium.org> Commit-Queue: Nicolas Capens <nicolascapens@chromium.org> Tested-by: Nicolas Capens <nicolascapens@chromium.org>

  • src/commit_id.bat
  • @echo off
    
    REM commit hash
    (FOR /F "delims=" %%i IN ('call git rev-parse --short^=12 HEAD') DO set _Str=%%i) || (set _Str=badf00dbad00)
    set _Str=#define COMMIT_HASH %_Str%
    echo %_Str% > %~dp0\common\commit.h
    
    REM commit date
    (FOR /F "delims=" %%i IN ('git show -s --format^="%%ci" HEAD') DO set _Str=%%i) || (set _Str=Unknown Date)
    set _Str=#define COMMIT_DATE "%_Str%"
    echo %_Str% >> %~dp0\common\commit.h