update_package_template.cmd 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo off
  2. cd packageTemplate || goto error
  3. copy /y ..\LICENSE .\License.txt || goto error
  4. choice /C y /N /T 1 /D y
  5. rmdir /s /q Licenses
  6. choice /C y /N /T 1 /D y
  7. mkdir Licenses
  8. copy /y ..\src\mpt\LICENSE.BSD-3-Clause.txt .\Licenses\License.mpt.BSD-3-Clause.txt || goto error
  9. copy /y ..\src\mpt\LICENSE.BSL-1.0.txt .\Licenses\License.mpt.BSL-1.0.txt || goto error
  10. copy /y ..\include\ancient\LICENSE .\Licenses\License.ancient.txt || goto error
  11. copy /y ..\include\ancient\src\BZIP2Table.hpp .\Licenses\License.ancient.bzip2.txt || goto error
  12. copy /y ..\include\flac\COPYING.Xiph .\Licenses\License.FLAC.txt || goto error
  13. copy /y ..\include\lame\COPYING .\Licenses\License.lame.txt || goto error
  14. copy /y ..\include\lhasa\COPYING .\Licenses\License.lhasa.txt || goto error
  15. rem copy /y ..\include\minimp3\LICENSE .\Licenses\License.minimp3.txt || goto error
  16. rem copy /y ..\include\miniz\LICENSE .\Licenses\License.miniz.txt || goto error
  17. copy /y ..\include\mpg123\COPYING .\Licenses\License.mpg123.txt || goto error
  18. copy /y ..\include\mpg123\AUTHORS .\Licenses\License.mpg123.Authors.txt || goto error
  19. copy /y ..\include\nlohmann-json\LICENSE.MIT .\Licenses\License.nlohmann-json.txt || goto error
  20. copy /y ..\include\ogg\COPYING .\Licenses\License.ogg.txt || goto error
  21. copy /y ..\include\opus\COPYING .\Licenses\License.Opus.txt || goto error
  22. copy /y ..\include\opusenc\COPYING .\Licenses\License.Opusenc.txt || goto error
  23. copy /y ..\include\opusenc\AUTHORS .\Licenses\License.Opusenc.Authors.txt || goto error
  24. copy /y ..\include\opusfile\COPYING .\Licenses\License.Opusfile.txt || goto error
  25. copy /y ..\include\portaudio\LICENSE.txt .\Licenses\License.PortAudio.txt || goto error
  26. rem copy /y ..\include\portaudio\bindings\cpp\COPYING .\Licenses\License.portaudiocpp.txt || goto error
  27. rem copy /y ..\include\pugixml\LICENSE.md .\Licenses\License.PugiXML.txt || goto error
  28. copy /y ..\include\r8brain\LICENSE .\Licenses\License.R8Brain.txt || goto error
  29. copy /y ..\include\rtaudio\README.md .\Licenses\License.RtAudio.txt || goto error
  30. copy /y ..\include\rtkit\rtkit.h .\Licenses\License.RealtimeKit.txt || goto error
  31. copy /y ..\include\rtmidi\License.txt .\Licenses\License.RtMidi.txt || goto error
  32. copy /y ..\include\smbPitchShift\smbPitchShift.cpp .\Licenses\License.smbPitchShift.txt || goto error
  33. copy /y ..\include\soundtouch\COPYING.TXT .\Licenses\License.SoundTouch.txt || goto error
  34. rem copy /y ..\include\stb_vorbis\stb_vorbis.c .\Licenses\License.stb_vorbis.txt || goto error
  35. copy /y ..\include\unrar\license.txt .\Licenses\License.UnRAR.txt || goto error
  36. copy /y ..\include\vorbis\COPYING .\Licenses\License.Vorbis.txt || goto error
  37. copy /y ..\include\zlib\README .\Licenses\License.zlib.txt || goto error
  38. copy /y ..\include\zlib\contrib\minizip\MiniZip64_info.txt .\Licenses\License.minizip.txt || goto error
  39. cd .. || goto error
  40. goto noerror
  41. :error
  42. exit 1
  43. :noerror
  44. exit 0