Skip to content

Commit

Permalink
Added missed createversion.bat
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Mar 20, 2018
1 parent 0c617b3 commit 6217228
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Apps/MfgToolLib/createversion.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
call git --version
IF ERRORLEVEL 1 (

echo #define GIT_VERSION "unknown" > %1/gitversion.h

) ELSE (

call git log -n1 HEAD --pretty=format:"#define GIT_VERSION \"-g%%%%h\"%%%%n"> %1/gitversion.h

)

0 comments on commit 6217228

Please sign in to comment.