FullVersion.cmd 525 B

12345678910
  1. REM This script reads the configure.ac
  2. REM and outputs a version parsing the AC_INIT line
  3. FOR /f "delims=" %%i in ('FIND /N "AC_INIT" ..\..\configure.ac') DO SET version_contained_string=%%i
  4. FOR /f "tokens=2 delims=," %%a in ("%version_contained_string%") DO SET dirty_version=%%a
  5. SET almost_clean_version=%dirty_version:[=%
  6. SET version_with_spaces=%almost_clean_version:]=%
  7. SET version_with_dash=%version_with_spaces: =%
  8. FOR /f "tokens=1 delims=-" %%a in ("%version_with_dash%") DO SET full_version=%%a
  9. echo %full_version%