get-boost.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #! /bin/sh
  2. set -e
  3. build_dir=$2
  4. branch="master"
  5. if [ "$1" != "master" -a "$1" != "refs/heads/master" ]; then
  6. branch="develop"
  7. fi
  8. echo "BUILD_DIR: $build_dir"
  9. echo "BRANCH: $branch"
  10. git clone -b $branch --depth 1 https://github.com/boostorg/boost.git boost-root
  11. cd boost-root
  12. # Use a reasonably large depth to prevent intermittent update failures due to
  13. # commits being on a submodule's master before the superproject is updated.
  14. git submodule update --init --depth 20 --jobs 4 \
  15. libs/array \
  16. libs/headers \
  17. tools/build \
  18. tools/boost_install \
  19. tools/boostdep \
  20. libs/align \
  21. libs/asio \
  22. libs/assert \
  23. libs/config \
  24. libs/core \
  25. libs/endian \
  26. libs/filesystem \
  27. libs/intrusive \
  28. libs/locale \
  29. libs/optional \
  30. libs/smart_ptr \
  31. libs/static_assert \
  32. libs/system \
  33. libs/throw_exception \
  34. libs/type_traits \
  35. libs/utility \
  36. libs/winapi \
  37. libs/algorithm \
  38. libs/array \
  39. libs/atomic \
  40. libs/bind \
  41. libs/chrono \
  42. libs/concept_check \
  43. libs/container \
  44. libs/container_hash \
  45. libs/context \
  46. libs/conversion \
  47. libs/coroutine \
  48. libs/date_time \
  49. libs/detail \
  50. libs/exception \
  51. libs/function \
  52. libs/function_types \
  53. libs/functional \
  54. libs/fusion \
  55. libs/integer \
  56. libs/io \
  57. libs/iterator \
  58. libs/lambda \
  59. libs/lexical_cast \
  60. libs/logic \
  61. libs/math \
  62. libs/move \
  63. libs/mp11 \
  64. libs/mpl \
  65. libs/numeric/conversion \
  66. libs/pool \
  67. libs/predef \
  68. libs/preprocessor \
  69. libs/random \
  70. libs/range \
  71. libs/ratio \
  72. libs/rational \
  73. libs/thread \
  74. libs/tuple \
  75. libs/type_index \
  76. libs/typeof \
  77. libs/unordered
  78. echo Submodule update complete
  79. rm -rf libs/beast
  80. cp -r $build_dir libs/beast