import_boost.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #!/bin/sh
  2. # given a directory, copy all needed parts from boost into the
  3. # current branch
  4. # only run this to update boost! (i.e. almost never)
  5. # usage example:
  6. # cd /tmp
  7. # tar xzvf /location/of/boost/tarball
  8. # cd /home/user/svn/bind10/trunk
  9. # tools/import_boost.sh /tmp/boost-version
  10. # svn commit
  11. # need new boost stuff?
  12. # TODO: LICENSE_1_0.txt
  13. # add files to list 'ere
  14. FILES="
  15. boost/*.hpp
  16. boost/algorithm
  17. boost/asio
  18. boost/assign/list_inserter.hpp
  19. boost/assign/std/vector.hpp
  20. boost/bind
  21. boost/config
  22. boost/concept
  23. boost/detail
  24. boost/exception
  25. boost/function
  26. boost/iterator
  27. boost/mpl
  28. boost/preprocessor
  29. boost/python
  30. boost/range
  31. boost/smart_ptr
  32. boost/type_traits
  33. boost/utility
  34. "
  35. TARGET="ext"
  36. if [ $# -ne 1 ]
  37. then
  38. echo "Usage: boost_import.sh <boost directory>"
  39. exit
  40. fi
  41. if [ ! -d $TARGET/boost ]
  42. then
  43. echo "This does not appear to be the main trunk/branch directory"
  44. exit
  45. fi
  46. DIR=$1
  47. do_cmd()
  48. {
  49. echo $@
  50. $@
  51. }
  52. #echo "cp ${DIR}/boost/shared_ptr.hpp boost/"
  53. for FILE in ${FILES}
  54. do
  55. TGT=`echo ${FILE} | sed 's/[^\/]*$//'`
  56. cmd="mkdir -p ${TARGET}/${TGT}"
  57. do_cmd ${cmd}
  58. cmd="cp -r ${DIR}/${FILE} ${TARGET}/${TGT}"
  59. do_cmd ${cmd}
  60. done