package_libopenmpt_retro_winxp.cmd 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @echo off
  2. set BATCH_DIR=%~dp0
  3. cd %BATCH_DIR%
  4. cd ..\..
  5. set MY_DIR=%CD%
  6. call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6
  7. call build\auto\setup_vs_any.cmd
  8. call build\auto\helper_get_svnversion.cmd
  9. call build\auto\helper_get_openmpt_version.cmd
  10. set MPT_REVISION=%LIBOPENMPT_VERSION_STRING%+%SVNVERSION%
  11. if "x%LIBOPENMPT_VERSION_PREREL%" == "x" (
  12. set MPT_REVISION=%LIBOPENMPT_VERSION_STRING%+release
  13. )
  14. set MPT_PKG_TAG=%MPT_DIST_VARIANT_OS%
  15. cd bin || goto error
  16. rmdir /s /q libopenmpt
  17. mkdir libopenmpt || goto error
  18. mkdir libopenmpt\bin.retro.winxp
  19. mkdir libopenmpt\bin.retro.winxp\%LIBOPENMPT_VERSION_STRING%
  20. rmdir /s /q libopenmpt-retro-winxp
  21. del /f /q libopenmpt-retro-winxp.tar
  22. del /f /q libopenmpt-%MPT_REVISION%.bin.retro.winxp.%MPT_PKG_FORMAT%
  23. mkdir libopenmpt-retro-winxp
  24. cd libopenmpt-retro-winxp || goto error
  25. mkdir openmpt123
  26. mkdir openmpt123\x86
  27. mkdir openmpt123\amd64
  28. mkdir XMPlay
  29. mkdir Winamp
  30. rmdir /s /q Licenses
  31. mkdir Licenses
  32. copy /y ..\..\src\mpt\LICENSE.BSD-3-Clause.txt .\Licenses\License.mpt.BSD-3-Clause.txt || goto error
  33. copy /y ..\..\src\mpt\LICENSE.BSL-1.0.txt .\Licenses\License.mpt.BSL-1.0.txt || goto error
  34. rem copy /y ..\..\include\ancient\LICENSE .\Licenses\License.ancient.txt || goto error
  35. rem copy /y ..\..\include\ancient\src\BZIP2Table.hpp .\Licenses\License.ancient.bzip2.txt || goto error
  36. copy /y ..\..\include\flac\COPYING.Xiph .\Licenses\License.FLAC.txt || goto error
  37. rem copy /y ..\..\include\lame\COPYING .\Licenses\License.lame.txt || goto error
  38. rem copy /y ..\..\include\lhasa\COPYING .\Licenses\License.lhasa.txt || goto error
  39. rem copy /y ..\..\include\minimp3\LICENSE .\Licenses\License.minimp3.txt || goto error
  40. rem copy /y ..\..\include\miniz\miniz.c .\Licenses\License.miniz.txt || goto error
  41. copy /y ..\..\include\mpg123\COPYING .\Licenses\License.mpg123.txt || goto error
  42. copy /y ..\..\include\mpg123\AUTHORS .\Licenses\License.mpg123.Authors.txt || goto error
  43. rem copy /y ..\..\include\nlohmann-json\LICENSE.MIT .\Licenses\License.nlohmann-json.txt || goto error
  44. copy /y ..\..\include\ogg\COPYING .\Licenses\License.ogg.txt || goto error
  45. rem copy /y ..\..\include\opus\COPYING .\Licenses\License.Opus.txt || goto error
  46. rem copy /y ..\..\include\opusenc\COPYING .\Licenses\License.Opusenc.txt || goto error
  47. rem copy /y ..\..\include\opusenc\AUTHORS .\Licenses\License.Opusenc.Authors.txt || goto error
  48. rem copy /y ..\..\include\opusfile\COPYING .\Licenses\License.Opusfile.txt || goto error
  49. copy /y ..\..\include\portaudio\LICENSE.txt .\Licenses\License.PortAudio.txt || goto error
  50. copy /y ..\..\include\portaudio\bindings\cpp\COPYING .\Licenses\License.portaudiocpp.txt || goto error
  51. copy /y ..\..\include\pugixml\LICENSE.md .\Licenses\License.PugiXML.txt || goto error
  52. rem copy /y ..\..\include\r8brain\LICENSE .\Licenses\License.R8Brain.txt || goto error
  53. rem copy /y ..\..\include\rtaudio\README.md .\Licenses\License.RtAudio.txt || goto error
  54. rem copy /y ..\..\include\rtmidi\License.txt .\Licenses\License.RtMidi.txt || goto error
  55. rem copy /y ..\..\include\smbPitchShift\smbPitchShift.cpp .\Licenses\License.smbPitchShift.txt || goto error
  56. rem copy /y ..\..\include\soundtouch\COPYING.TXT .\Licenses\License.SoundTouch.txt || goto error
  57. rem copy /y ..\..\include\stb_vorbis\stb_vorbis.c .\Licenses\License.stb_vorbis.txt || goto error
  58. rem copy /y ..\..\include\unrar\license.txt .\Licenses\License.UnRAR.txt || goto error
  59. copy /y ..\..\include\vorbis\COPYING .\Licenses\License.Vorbis.txt || goto error
  60. copy /y ..\..\include\zlib\README .\Licenses\License.zlib.txt || goto error
  61. rem copy /y ..\..\include\zlib\contrib\minizip\MiniZip64_info.txt .\Licenses\License.minizip.txt || goto error
  62. copy /y ..\..\LICENSE .\LICENSE.txt || goto error
  63. copy /y ..\..\libopenmpt\dox\changelog.md .\ || goto error
  64. copy /y ..\..\libopenmpt\doc\xmp-openmpt.txt .\XMPlay\ || goto error
  65. copy /y ..\..\libopenmpt\doc\in_openmpt.txt .\Winamp\ || goto error
  66. copy /y ..\..\bin\release\vs2017-winxp-static\x86\openmpt123.exe .\openmpt123\x86\ || goto error
  67. copy /y ..\..\bin\release\vs2017-winxp-static\x86\openmpt-mpg123.dll .\openmpt123\x86\ || goto error
  68. copy /y ..\..\bin\release\vs2017-winxp-static\amd64\openmpt123.exe .\openmpt123\amd64\ || goto error
  69. copy /y ..\..\bin\release\vs2017-winxp-static\amd64\openmpt-mpg123.dll .\openmpt123\amd64\ || goto error
  70. copy /y ..\..\bin\release\vs2017-winxp-static\x86\xmp-openmpt.dll .\XMPlay\ || goto error
  71. copy /y ..\..\bin\release\vs2017-winxp-static\x86\openmpt-mpg123.dll .\XMPlay\ || goto error
  72. copy /y ..\..\bin\release\vs2017-winxp-static\x86\in_openmpt.dll .\Winamp\ || goto error
  73. copy /y ..\..\bin\release\vs2017-winxp-static\x86\openmpt-mpg123.dll .\Winamp\ || goto error
  74. ..\..\build\tools\7zip\7z.exe a -t%MPT_PKG_FORMAT% -mx=9 ..\libopenmpt\bin.retro.winxp\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.bin.retro.winxp.%MPT_PKG_FORMAT% ^
  75. LICENSE.txt ^
  76. Licenses ^
  77. changelog.md ^
  78. openmpt123\x86\openmpt123.exe ^
  79. openmpt123\x86\openmpt-mpg123.dll ^
  80. openmpt123\amd64\openmpt123.exe ^
  81. openmpt123\amd64\openmpt-mpg123.dll ^
  82. XMPlay\xmp-openmpt.txt ^
  83. XMPlay\xmp-openmpt.dll ^
  84. XMPlay\openmpt-mpg123.dll ^
  85. Winamp\in_openmpt.txt ^
  86. Winamp\in_openmpt.dll ^
  87. Winamp\openmpt-mpg123.dll ^
  88. || goto error
  89. cd .. || goto error
  90. rmdir /s /q libopenmpt-retro-winxp
  91. ..\build\tools\7zip\7z.exe a -r -ttar libopenmpt-retro-winxp.tar libopenmpt || goto error
  92. del /f /q libopenmpt\bin.retro.winxp\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.bin.retro.winxp.%MPT_PKG_FORMAT%
  93. rmdir /s /q libopenmpt
  94. cd .. || goto error
  95. goto noerror
  96. :error
  97. cd "%MY_DIR%"
  98. exit 1
  99. :noerror
  100. cd "%MY_DIR%"
  101. exit 0