build_release_packages.sh 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env bash
  2. # Build release packages
  3. # Copyright 2008 Beman Dawes
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # See http://www.boost.org/LICENSE_1_0.txt
  6. if [ $# -lt 1 ]
  7. then
  8. echo "invoke:" $0 "release-name"
  9. echo "example:" $0 "boost_1_35_0_RC3"
  10. exit 1
  11. fi
  12. echo "preping posix..."
  13. rm -r posix/bin.v2 2>/dev/null
  14. rm -r posix/dist 2>/dev/null
  15. mv posix $1
  16. rm -f $1.tar.gz 2>/dev/null
  17. rm -f $1.tar.bz2 2>/dev/null
  18. echo "creating gz..."
  19. tar cfz $1.tar.gz $1
  20. echo "creating bz2..."
  21. gzip -c $1.tar.gz | bzip2 >$1.tar.bz2
  22. echo "cleaning up..."
  23. mv $1 posix
  24. echo "preping windows..."
  25. rm -r windows/bin.v2 2>/dev/null
  26. rm -r windows/dist 2>/dev/null
  27. mv windows $1
  28. rm -f $1.zip 2>/dev/null
  29. rm -f $1.7z 2>/dev/null
  30. echo "creating zip..."
  31. zip -r $1.zip $1
  32. echo "creating 7z..."
  33. 7z a -r $1.7z $1
  34. echo "cleaning up..."
  35. mv $1 windows
  36. exit 0
粤ICP备19079148号