helper_get_openmpt_version.cmd 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @echo off
  2. cd build\auto
  3. cl /I..\.. /I..\..\src /I..\..\common /EHsc helper_get_openmpt_version.cpp
  4. cd ..\..
  5. build\auto\helper_get_openmpt_version.exe openmpt > openmpt_version.txt
  6. set /p OPENMPT_VERSION=<openmpt_version.txt
  7. del /f openmpt_version.txt
  8. build\auto\helper_get_openmpt_version.exe openmpt-version-majormajor > openmpt_version.txt
  9. set /p OPENMPT_VERSION_MAJORMAJOR=<openmpt_version.txt
  10. del /f openmpt_version.txt
  11. build\auto\helper_get_openmpt_version.exe openmpt-version-major > openmpt_version.txt
  12. set /p OPENMPT_VERSION_MAJOR=<openmpt_version.txt
  13. del /f openmpt_version.txt
  14. build\auto\helper_get_openmpt_version.exe openmpt-version-minor > openmpt_version.txt
  15. set /p OPENMPT_VERSION_MINOR=<openmpt_version.txt
  16. del /f openmpt_version.txt
  17. build\auto\helper_get_openmpt_version.exe openmpt-version-minorminor > openmpt_version.txt
  18. set /p OPENMPT_VERSION_MINORMINOR=<openmpt_version.txt
  19. del /f openmpt_version.txt
  20. build\auto\helper_get_openmpt_version.exe libopenmpt-version-major > openmpt_version.txt
  21. set /p LIBOPENMPT_VERSION_MAJOR=<openmpt_version.txt
  22. del /f openmpt_version.txt
  23. build\auto\helper_get_openmpt_version.exe libopenmpt-version-minor > openmpt_version.txt
  24. set /p LIBOPENMPT_VERSION_MINOR=<openmpt_version.txt
  25. del /f openmpt_version.txt
  26. build\auto\helper_get_openmpt_version.exe libopenmpt-version-patch > openmpt_version.txt
  27. set /p LIBOPENMPT_VERSION_PATCH=<openmpt_version.txt
  28. del /f openmpt_version.txt
  29. build\auto\helper_get_openmpt_version.exe libopenmpt-version-prerel > openmpt_version.txt
  30. set /p LIBOPENMPT_VERSION_PREREL=<openmpt_version.txt
  31. del /f openmpt_version.txt
  32. build\auto\helper_get_openmpt_version.exe libopenmpt-version-string > openmpt_version.txt
  33. set /p LIBOPENMPT_VERSION_STRING=<openmpt_version.txt
  34. del /f openmpt_version.txt
  35. cd build\auto
  36. del /f helper_get_openmpt_version.obj
  37. del /f helper_get_openmpt_version.exe
  38. cd ..\..
  39. rem echo %OPENMPT_VERSION%