blob: 996c3cec4c1d3475fd0530ed132c881d903cdf57 [file] [log] [blame]
@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