@echo off set BATCH_DIR=%~dp0 cd %BATCH_DIR% cd ..\.. set MY_DIR=%CD% call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6 call build\auto\setup_vs_any.cmd call build\auto\helper_get_svnversion.cmd call build\auto\helper_get_openmpt_version.cmd set MPT_REVISION=%LIBOPENMPT_VERSION_STRING%+%SVNVERSION% if "x%LIBOPENMPT_VERSION_PREREL%" == "x" ( set MPT_REVISION=%LIBOPENMPT_VERSION_STRING%+release ) set MPT_PKG_TAG=%MPT_DIST_VARIANT_OS% cd bin || goto error rmdir /s /q libopenmpt mkdir libopenmpt || goto error mkdir libopenmpt\bin.windows mkdir libopenmpt\bin.windows\%LIBOPENMPT_VERSION_STRING% rmdir /s /q libopenmpt-windows del /f /q libopenmpt-windows.tar del /f /q libopenmpt-%MPT_REVISION%.bin.windows.%MPT_PKG_FORMAT% mkdir libopenmpt-windows cd libopenmpt-windows || goto error mkdir openmpt123 mkdir openmpt123\x86 mkdir openmpt123\amd64 mkdir openmpt123\x86-legacy mkdir openmpt123\amd64-legacy mkdir openmpt123\arm mkdir openmpt123\arm64 mkdir XMPlay mkdir Winamp mkdir XMPlay-legacy mkdir Winamp-legacy rmdir /s /q Licenses mkdir Licenses copy /y ..\..\src\mpt\LICENSE.BSD-3-Clause.txt .\Licenses\License.mpt.BSD-3-Clause.txt || goto error copy /y ..\..\src\mpt\LICENSE.BSL-1.0.txt .\Licenses\License.mpt.BSL-1.0.txt || goto error rem copy /y ..\..\include\ancient\LICENSE .\Licenses\License.ancient.txt || goto error rem copy /y ..\..\include\ancient\src\BZIP2Table.hpp .\Licenses\License.ancient.bzip2.txt || goto error copy /y ..\..\include\flac\COPYING.Xiph .\Licenses\License.FLAC.txt || goto error rem copy /y ..\..\include\lame\COPYING .\Licenses\License.lame.txt || goto error rem copy /y ..\..\include\lhasa\COPYING .\Licenses\License.lhasa.txt || goto error rem copy /y ..\..\include\minimp3\LICENSE .\Licenses\License.minimp3.txt || goto error rem copy /y ..\..\include\miniz\miniz.c .\Licenses\License.miniz.txt || goto error copy /y ..\..\include\mpg123\COPYING .\Licenses\License.mpg123.txt || goto error copy /y ..\..\include\mpg123\AUTHORS .\Licenses\License.mpg123.Authors.txt || goto error rem copy /y ..\..\include\nlohmann-json\LICENSE.MIT .\Licenses\License.nlohmann-json.txt || goto error copy /y ..\..\include\ogg\COPYING .\Licenses\License.ogg.txt || goto error rem copy /y ..\..\include\opus\COPYING .\Licenses\License.Opus.txt || goto error rem copy /y ..\..\include\opusenc\COPYING .\Licenses\License.Opusenc.txt || goto error rem copy /y ..\..\include\opusenc\AUTHORS .\Licenses\License.Opusenc.Authors.txt || goto error rem copy /y ..\..\include\opusfile\COPYING .\Licenses\License.Opusfile.txt || goto error copy /y ..\..\include\portaudio\LICENSE.txt .\Licenses\License.PortAudio.txt || goto error copy /y ..\..\include\portaudio\bindings\cpp\COPYING .\Licenses\License.portaudiocpp.txt || goto error copy /y ..\..\include\pugixml\LICENSE.md .\Licenses\License.PugiXML.txt || goto error rem copy /y ..\..\include\r8brain\LICENSE .\Licenses\License.R8Brain.txt || goto error rem copy /y ..\..\include\rtaudio\README.md .\Licenses\License.RtAudio.txt || goto error rem copy /y ..\..\include\rtmidi\License.txt .\Licenses\License.RtMidi.txt || goto error rem copy /y ..\..\include\smbPitchShift\smbPitchShift.cpp .\Licenses\License.smbPitchShift.txt || goto error rem copy /y ..\..\include\soundtouch\COPYING.TXT .\Licenses\License.SoundTouch.txt || goto error rem copy /y ..\..\include\stb_vorbis\stb_vorbis.c .\Licenses\License.stb_vorbis.txt || goto error rem copy /y ..\..\include\unrar\license.txt .\Licenses\License.UnRAR.txt || goto error copy /y ..\..\include\vorbis\COPYING .\Licenses\License.Vorbis.txt || goto error copy /y ..\..\include\zlib\README .\Licenses\License.zlib.txt || goto error rem copy /y ..\..\include\zlib\contrib\minizip\MiniZip64_info.txt .\Licenses\License.minizip.txt || goto error copy /y ..\..\LICENSE .\LICENSE.txt || goto error copy /y ..\..\libopenmpt\dox\changelog.md .\ || goto error copy /y ..\..\libopenmpt\doc\xmp-openmpt.txt .\XMPlay\ || goto error copy /y ..\..\libopenmpt\doc\in_openmpt.txt .\Winamp\ || goto error copy /y ..\..\libopenmpt\doc\xmp-openmpt.txt .\XMPlay-legacy\ || goto error copy /y ..\..\libopenmpt\doc\in_openmpt.txt .\Winamp-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\openmpt123.exe .\openmpt123\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\openmpt-mpg123.dll .\openmpt123\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\amd64\openmpt123.exe .\openmpt123\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\amd64\openmpt-mpg123.dll .\openmpt123\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-static\arm\openmpt123.exe .\openmpt123\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-static\arm\openmpt-mpg123.dll .\openmpt123\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-static\arm64\openmpt123.exe .\openmpt123\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-static\arm64\openmpt-mpg123.dll .\openmpt123\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\openmpt123.exe .\openmpt123\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\openmpt-mpg123.dll .\openmpt123\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\amd64\openmpt123.exe .\openmpt123\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\amd64\openmpt-mpg123.dll .\openmpt123\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\xmp-openmpt.dll .\XMPlay\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\openmpt-mpg123.dll .\XMPlay\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\in_openmpt.dll .\Winamp\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-static\x86\openmpt-mpg123.dll .\Winamp\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\xmp-openmpt.dll .\XMPlay-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\openmpt-mpg123.dll .\XMPlay-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\in_openmpt.dll .\Winamp-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-static\x86\openmpt-mpg123.dll .\Winamp-legacy\ || goto error ..\..\build\tools\7zip\7z.exe a -t%MPT_PKG_FORMAT% -mx=9 ..\libopenmpt\bin.windows\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.bin.windows.%MPT_PKG_FORMAT% ^ LICENSE.txt ^ Licenses ^ changelog.md ^ openmpt123\x86\openmpt123.exe ^ openmpt123\x86\openmpt-mpg123.dll ^ openmpt123\amd64\openmpt123.exe ^ openmpt123\amd64\openmpt-mpg123.dll ^ openmpt123\arm\openmpt123.exe ^ openmpt123\arm\openmpt-mpg123.dll ^ openmpt123\arm64\openmpt123.exe ^ openmpt123\arm64\openmpt-mpg123.dll ^ openmpt123\x86-legacy\openmpt123.exe ^ openmpt123\x86-legacy\openmpt-mpg123.dll ^ openmpt123\amd64-legacy\openmpt123.exe ^ openmpt123\amd64-legacy\openmpt-mpg123.dll ^ XMPlay\xmp-openmpt.txt ^ XMPlay\xmp-openmpt.dll ^ XMPlay\openmpt-mpg123.dll ^ Winamp\in_openmpt.txt ^ Winamp\in_openmpt.dll ^ Winamp\openmpt-mpg123.dll ^ XMPlay-legacy\xmp-openmpt.txt ^ XMPlay-legacy\xmp-openmpt.dll ^ XMPlay-legacy\openmpt-mpg123.dll ^ Winamp-legacy\in_openmpt.txt ^ Winamp-legacy\in_openmpt.dll ^ Winamp-legacy\openmpt-mpg123.dll ^ || goto error cd .. || goto error rmdir /s /q libopenmpt-windows ..\build\tools\7zip\7z.exe a -r -ttar libopenmpt-windows.tar libopenmpt || goto error del /f /q libopenmpt\bin.windows\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.bin.windows.%MPT_PKG_FORMAT% rmdir /s /q libopenmpt cd .. || goto error cd bin || goto error rmdir /s /q libopenmpt mkdir libopenmpt || goto error mkdir libopenmpt\dev.windows.%MPT_VS_VER% mkdir libopenmpt\dev.windows.%MPT_VS_VER%\%LIBOPENMPT_VERSION_STRING% rmdir /s /q libopenmpt-dev-windows-%MPT_VS_VER% del /f /q libopenmpt-dev-windows-%MPT_VS_VER%.tar del /f /q libopenmpt-%MPT_REVISION%.dev.windows.%MPT_VS_VER%.%MPT_PKG_FORMAT% mkdir libopenmpt-dev-windows-%MPT_VS_VER% cd libopenmpt-dev-windows-%MPT_VS_VER% || goto error mkdir inc mkdir inc\libopenmpt mkdir lib mkdir lib\x86 mkdir lib\amd64 mkdir lib\arm mkdir lib\arm64 mkdir lib\x86-legacy mkdir lib\amd64-legacy mkdir bin mkdir bin\x86 mkdir bin\amd64 mkdir bin\arm mkdir bin\arm64 mkdir bin\x86-legacy mkdir bin\amd64-legacy copy /y ..\..\LICENSE .\LICENSE.txt || goto error rmdir /s /q Licenses mkdir Licenses copy /y ..\..\src\mpt\LICENSE.BSD-3-Clause.txt .\Licenses\License.mpt.BSD-3-Clause.txt || goto error copy /y ..\..\src\mpt\LICENSE.BSL-1.0.txt .\Licenses\License.mpt.BSL-1.0.txt || goto error rem copy /y ..\..\include\ancient\LICENSE .\Licenses\License.ancient.txt || goto error rem copy /y ..\..\include\ancient\src\BZIP2Table.hpp .\Licenses\License.ancient.bzip2.txt || goto error rem copy /y ..\..\include\flac\COPYING.Xiph .\Licenses\License.FLAC.txt || goto error rem copy /y ..\..\include\lame\COPYING .\Licenses\License.lame.txt || goto error rem copy /y ..\..\include\lhasa\COPYING .\Licenses\License.lhasa.txt || goto error rem copy /y ..\..\include\minimp3\LICENSE .\Licenses\License.minimp3.txt || goto error rem copy /y ..\..\include\miniz\LICENSE .\Licenses\License.miniz.txt || goto error copy /y ..\..\include\mpg123\COPYING .\Licenses\License.mpg123.txt || goto error copy /y ..\..\include\mpg123\AUTHORS .\Licenses\License.mpg123.Authors.txt || goto error rem copy /y ..\..\include\nlohmann-json\LICENSE.MIT .\Licenses\License.nlohmann-json.txt || goto error copy /y ..\..\include\ogg\COPYING .\Licenses\License.ogg.txt || goto error rem copy /y ..\..\include\opus\COPYING .\Licenses\License.Opus.txt || goto error rem copy /y ..\..\include\opusenc\COPYING .\Licenses\License.Opusenc.txt || goto error rem copy /y ..\..\include\opusenc\AUTHORS .\Licenses\License.Opusenc.Authors.txt || goto error rem copy /y ..\..\include\opusfile\COPYING .\Licenses\License.Opusfile.txt || goto error rem copy /y ..\..\include\portaudio\LICENSE.txt .\Licenses\License.PortAudio.txt || goto error rem copy /y ..\..\include\portaudio\bindings\cpp\COPYING .\Licenses\License.portaudiocpp.txt || goto error rem copy /y ..\..\include\pugixml\LICENSE.md .\Licenses\License.PugiXML.txt || goto error rem copy /y ..\..\include\r8brain\LICENSE .\Licenses\License.R8Brain.txt || goto error rem copy /y ..\..\include\rtaudio\README.md .\Licenses\License.RtAudio.txt || goto error rem copy /y ..\..\include\rtmidi\License.txt .\Licenses\License.RtMidi.txt || goto error rem copy /y ..\..\include\smbPitchShift\smbPitchShift.cpp .\Licenses\License.smbPitchShift.txt || goto error rem copy /y ..\..\include\soundtouch\COPYING.TXT .\Licenses\License.SoundTouch.txt || goto error rem copy /y ..\..\include\stb_vorbis\stb_vorbis.c .\Licenses\License.stb_vorbis.txt || goto error rem copy /y ..\..\include\unrar\license.txt .\Licenses\License.UnRAR.txt || goto error copy /y ..\..\include\vorbis\COPYING .\Licenses\License.Vorbis.txt || goto error copy /y ..\..\include\zlib\README .\Licenses\License.zlib.txt || goto error rem copy /y ..\..\include\zlib\contrib\minizip\MiniZip64_info.txt .\Licenses\License.minizip.txt || goto error copy /y ..\..\libopenmpt\dox\changelog.md .\changelog.md || goto error copy /y ..\..\libopenmpt\libopenmpt.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt.hpp inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_config.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_version.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_ext.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_ext.hpp inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_stream_callbacks_buffer.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_stream_callbacks_fd.h inc\libopenmpt\ || goto error copy /y ..\..\libopenmpt\libopenmpt_stream_callbacks_file.h inc\libopenmpt\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\libopenmpt.lib lib\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\libopenmpt.dll bin\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\openmpt-mpg123.dll bin\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\openmpt-ogg.dll bin\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\openmpt-vorbis.dll bin\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\x86\openmpt-zlib.dll bin\x86\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\libopenmpt.lib lib\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\libopenmpt.dll bin\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\openmpt-mpg123.dll bin\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\openmpt-ogg.dll bin\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\openmpt-vorbis.dll bin\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win81-shared\amd64\openmpt-zlib.dll bin\amd64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\libopenmpt.lib lib\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\libopenmpt.dll bin\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\openmpt-mpg123.dll bin\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\openmpt-ogg.dll bin\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\openmpt-vorbis.dll bin\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm\openmpt-zlib.dll bin\arm\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\libopenmpt.lib lib\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\libopenmpt.dll bin\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\openmpt-mpg123.dll bin\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\openmpt-ogg.dll bin\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\openmpt-vorbis.dll bin\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win10-shared\arm64\openmpt-zlib.dll bin\arm64\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\libopenmpt.lib lib\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\libopenmpt.dll bin\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\openmpt-mpg123.dll bin\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\openmpt-ogg.dll bin\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\openmpt-vorbis.dll bin\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\x86\openmpt-zlib.dll bin\x86-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\libopenmpt.lib lib\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\libopenmpt.dll bin\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\openmpt-mpg123.dll bin\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\openmpt-ogg.dll bin\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\openmpt-vorbis.dll bin\amd64-legacy\ || goto error copy /y ..\..\bin\release\%MPT_VS_VER%-win7-shared\amd64\openmpt-zlib.dll bin\amd64-legacy\ || goto error ..\..\build\tools\7zip\7z.exe a -t%MPT_PKG_FORMAT% -mx=9 ..\libopenmpt\dev.windows.%MPT_VS_VER%\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.dev.windows.%MPT_VS_VER%.%MPT_PKG_FORMAT% ^ LICENSE.txt ^ Licenses ^ changelog.md ^ inc\libopenmpt\libopenmpt.h ^ inc\libopenmpt\libopenmpt.hpp ^ inc\libopenmpt\libopenmpt_config.h ^ inc\libopenmpt\libopenmpt_version.h ^ inc\libopenmpt\libopenmpt_ext.h ^ inc\libopenmpt\libopenmpt_ext.hpp ^ inc\libopenmpt\libopenmpt_stream_callbacks_buffer.h ^ inc\libopenmpt\libopenmpt_stream_callbacks_fd.h ^ inc\libopenmpt\libopenmpt_stream_callbacks_file.h ^ lib\x86\libopenmpt.lib ^ lib\amd64\libopenmpt.lib ^ lib\arm\libopenmpt.lib ^ lib\arm64\libopenmpt.lib ^ lib\x86-legacy\libopenmpt.lib ^ lib\amd64-legacy\libopenmpt.lib ^ bin\x86\libopenmpt.dll ^ bin\x86\openmpt-mpg123.dll ^ bin\x86\openmpt-ogg.dll ^ bin\x86\openmpt-vorbis.dll ^ bin\x86\openmpt-zlib.dll ^ bin\amd64\libopenmpt.dll ^ bin\amd64\openmpt-mpg123.dll ^ bin\amd64\openmpt-ogg.dll ^ bin\amd64\openmpt-vorbis.dll ^ bin\amd64\openmpt-zlib.dll ^ bin\arm\libopenmpt.dll ^ bin\arm\openmpt-mpg123.dll ^ bin\arm\openmpt-ogg.dll ^ bin\arm\openmpt-vorbis.dll ^ bin\arm\openmpt-zlib.dll ^ bin\arm64\libopenmpt.dll ^ bin\arm64\openmpt-mpg123.dll ^ bin\arm64\openmpt-ogg.dll ^ bin\arm64\openmpt-vorbis.dll ^ bin\arm64\openmpt-zlib.dll ^ bin\x86-legacy\libopenmpt.dll ^ bin\x86-legacy\openmpt-mpg123.dll ^ bin\x86-legacy\openmpt-ogg.dll ^ bin\x86-legacy\openmpt-vorbis.dll ^ bin\x86-legacy\openmpt-zlib.dll ^ bin\amd64-legacy\libopenmpt.dll ^ bin\amd64-legacy\openmpt-mpg123.dll ^ bin\amd64-legacy\openmpt-ogg.dll ^ bin\amd64-legacy\openmpt-vorbis.dll ^ bin\amd64-legacy\openmpt-zlib.dll ^ || goto error cd .. || goto error rmdir /s /q libopenmpt-dev-windows-%MPT_VS_VER% ..\build\tools\7zip\7z.exe a -r -ttar libopenmpt-dev-windows-%MPT_VS_VER%.tar libopenmpt || goto error del /f /q libopenmpt\dev.windows.%MPT_VS_VER%\%LIBOPENMPT_VERSION_STRING%\libopenmpt-%MPT_REVISION%.dev.windows.%MPT_VS_VER%.%MPT_PKG_FORMAT% rmdir /s /q libopenmpt cd .. || goto error goto noerror :error cd "%MY_DIR%" exit 1 :noerror cd "%MY_DIR%" exit 0