mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +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
|