NanoVNA/iar/githash_get.bat
2019-10-05 06:14:45 +03:00

9 lines
250 B
Batchfile

git rev-parse --short HEAD > githash.h
set /p GITHASH=<githash.h
echo #ifdef NDEBUG>githash.h
echo #define VERSION "%GITHASH%-release">>githash.h
echo #else>>githash.h
echo #define VERSION "%GITHASH%-debug">>githash.h
echo #endif>>githash.h