version.bat 199 Bytes
Newer Older
1
@ECHO off
2

3 4 5 6 7
FOR /F "delims=" %%a IN ('findstr /B AC_INIT ..\..\..\configure.ac') DO (
	FOR /F "tokens=1,2,3 delims=[,]" %%1 IN ("%%a") DO (
		ECHO #define PACKAGE_VERSION "%%3" > config.h
	)
)