2009-10-30 00:18:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# given a directory, copy all needed parts from boost into the
|
|
|
|
# current branch
|
|
|
|
|
2009-10-30 00:32:12 +00:00
|
|
|
# only run this to update boost! (i.e. almost never)
|
|
|
|
|
2009-10-30 00:18:14 +00:00
|
|
|
# usage example:
|
|
|
|
# cd /tmp
|
|
|
|
# tar xzvf /location/of/boost/tarball
|
|
|
|
# cd /home/user/svn/bind10/trunk
|
|
|
|
# tools/import_boost.sh /tmp/boost-version
|
|
|
|
# svn commit
|
|
|
|
|
|
|
|
# need new boost stuff?
|
2010-02-10 19:17:40 +00:00
|
|
|
# TODO: LICENSE_1_0.txt
|
2009-10-30 00:18:14 +00:00
|
|
|
# add files to list 'ere
|
|
|
|
FILES="
|
2009-10-30 00:32:12 +00:00
|
|
|
boost/*.hpp
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/algorithm
|
2009-10-30 00:32:12 +00:00
|
|
|
boost/asio
|
2010-02-10 19:17:40 +00:00
|
|
|
boost/assign/list_inserter.hpp
|
|
|
|
boost/assign/std/vector.hpp
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/bind
|
2009-10-30 00:18:14 +00:00
|
|
|
boost/config
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/concept
|
2009-10-30 00:32:12 +00:00
|
|
|
boost/detail
|
2009-10-30 00:18:14 +00:00
|
|
|
boost/exception
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/function
|
2009-10-30 17:31:49 +00:00
|
|
|
boost/iterator
|
2009-10-30 00:18:14 +00:00
|
|
|
boost/mpl
|
|
|
|
boost/preprocessor
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/range
|
2009-10-30 00:18:14 +00:00
|
|
|
boost/smart_ptr
|
|
|
|
boost/type_traits
|
2009-10-30 17:19:48 +00:00
|
|
|
boost/utility
|
2009-10-30 00:18:14 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
TARGET="ext"
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]
|
|
|
|
then
|
|
|
|
echo "Usage: boost_import.sh <boost directory>"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d $TARGET/boost ]
|
|
|
|
then
|
|
|
|
echo "This does not appear to be the main trunk/branch directory"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
DIR=$1
|
|
|
|
|
|
|
|
do_cmd()
|
|
|
|
{
|
|
|
|
echo $@
|
|
|
|
$@
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#echo "cp ${DIR}/boost/shared_ptr.hpp boost/"
|
|
|
|
for FILE in ${FILES}
|
|
|
|
do
|
|
|
|
TGT=`echo ${FILE} | sed 's/[^\/]*$//'`
|
|
|
|
cmd="mkdir -p ${TARGET}/${TGT}"
|
|
|
|
do_cmd ${cmd}
|
|
|
|
cmd="cp -r ${DIR}/${FILE} ${TARGET}/${TGT}"
|
|
|
|
do_cmd ${cmd}
|
|
|
|
done
|
|
|
|
|
|
|
|
|