build_release_packages.bat 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @echo off
  2. rem Build release packages
  3. rem Copyright Beman Dawes 2009
  4. rem Distributed under the Boost Software License, Version 1.0.
  5. rem See http://www.boost.org/LICENSE_1_0.txt
  6. echo Build release packages...
  7. if not %1$==$ goto ok
  8. echo Usage: build_release_packages release-name
  9. echo Example: build_release_packages boost_1_38_0_Beta1
  10. goto done
  11. :ok
  12. echo Preping posix...
  13. rmdir /s /q posix\bin.v2 2>nul
  14. rmdir /s /q posix\dist 2>nul
  15. ren posix %1
  16. del %1.tar.gz 2>nul
  17. del %1.tar.bz2 2>nul
  18. echo Creating gz...
  19. tar cfz %1.tar.gz %1
  20. echo Creating bz2...
  21. gzip -d -c %1.tar.gz | bzip2 >%1.tar.bz2
  22. echo Cleaning up posix...
  23. ren %1 posix
  24. echo Preping windows...
  25. rmdir /s /q windows\bin.v2 2>nul
  26. rmdir /s /q windows\dist 2>nul
  27. ren windows %1
  28. del %1.zip 2>nul
  29. del %1.7z 2>nul
  30. echo Creating zip...
  31. zip -r -q %1.zip %1
  32. echo Creating 7z...
  33. 7z a -r -bd %1.7z %1
  34. echo Cleaning up windows...
  35. ren %1 windows
  36. echo Build release packages complete
  37. :done
粤ICP备19079148号