blob: 996c3cec4c1d3475fd0530ed132c881d903cdf57 [file] [log] [blame]
zongqiang.zhang0c6a0882019-08-07 14:48:21 +08001@echo off
2SET LINE1=#ifndef GIT_VERSION
3SET LINE2=#define GIT_VERSION
4SET LINE3=#endif
5
6FOR /F %%I IN ('git describe --dirty --always --tags --abbrev=4') DO SET VERSTR=%%I
7
8echo %LINE1% > ../../supwisdom/sp_version.h
9echo %LINE2% ^"%VERSTR%^" >> ../../supwisdom/sp_version.h
10echo %LINE3% >> ../../supwisdom/sp_version.h