mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-03 07:00:01 +01:00
9 lines
250 B
Batchfile
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
|