2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-23 10:27:36 +00:00
kea/tools/import_boost.sh
Jeremy C. Reed eb27d3af6c Add two missing boost headers as seen on Solaris10 build
system (which doesn't have boost installed).


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@786 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 19:17:40 +00:00

74 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# given a directory, copy all needed parts from boost into the
# current branch
# only run this to update boost! (i.e. almost never)
# 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?
# TODO: LICENSE_1_0.txt
# add files to list 'ere
FILES="
boost/*.hpp
boost/algorithm
boost/asio
boost/assign/list_inserter.hpp
boost/assign/std/vector.hpp
boost/bind
boost/config
boost/concept
boost/detail
boost/exception
boost/function
boost/iterator
boost/mpl
boost/preprocessor
boost/range
boost/smart_ptr
boost/type_traits
boost/utility
"
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