@echo off | |
SET LINE1=#ifndef GIT_VERSION | |
SET LINE2=#define GIT_VERSION | |
SET LINE3=#endif | |
FOR /F %%I IN ('git describe --dirty --always --tags --abbrev=4') DO SET VERSTR=%%I | |
echo %LINE1% > ../../supwisdom/sp_version.h | |
echo %LINE2% ^"%VERSTR%^" >> ../../supwisdom/sp_version.h | |
echo %LINE3% >> ../../supwisdom/sp_version.h |