build_release_packages.sh 856 B

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