Commit 4249f009 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

script to import boost (will currently include about 12meg of headers, will include next)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@208 e5f2f494-b856-4b98-b285-d166d9295462
parent 11a53611
#!/bin/sh
# given a directory, copy all needed parts from boost into the
# current branch
# 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?
# add files to list 'ere
FILES="
boost/assert.hpp
boost/call_traits.hpp
boost/checked_delete.hpp
boost/config
boost/config.hpp
boost/current_function.hpp
boost/detail/*.hpp
boost/exception
boost/integer_traits.hpp
boost/lexical_cast.hpp
boost/limits.hpp
boost/memory_order.hpp
boost/mpl
boost/preprocessor
boost/shared_ptr.hpp
boost/smart_ptr
boost/smart_ptr.hpp
boost/static_assert.hpp
boost/throw_exception.hpp
boost/type_traits
"
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment