| 1 |
@echo off |
| 2 |
|
| 3 |
rem -- Echo the git commit hash. If git isn't available for some reason, |
| 4 |
rem -- output nothing instead. |
| 5 |
|
| 6 |
mkdir ..\gen 2>nul |
| 7 |
|
| 8 |
set /p VERSION=<..\..\VERSION.txt |
| 9 |
set COMMIT=%1 |
| 10 |
|
| 11 |
echo // AUTO-GENERATED BY %0 %*>..\gen\GenVersion.h |
| 12 |
echo const char GenVersion_Version[] = "%VERSION%";>>..\gen\GenVersion.h |
| 13 |
echo const char GenVersion_Commit[] = "%COMMIT%";>>..\gen\GenVersion.h |
| 14 |
|
| 15 |
rem -- The winpty.gyp file expects the script to output the include directory, |
| 16 |
rem -- relative to src. |
| 17 |
echo gen |
| 18 |
|
| 19 |
rem -- Set ERRORLEVEL to 0 using this cryptic syntax. |
| 20 |
(call ) |