kde-extraapps/boost.sh
2015-07-28 02:27:29 +03:00

24 lines
No EOL
737 B
Bash
Executable file

#!/bin/sh
set -e
boost=""
for dir in "/include" "/usr/include" "/usr/local/include";do
if [ -d "$dir/boost" ];then
boost="$dir"
fi
done
if [ -z "$boost" ];then
echo "ERROR: unable to find boost headers"
exit 1
elif [ -z "$(type -p bcp)" ];then
echo "ERROR: bcp tool not found"
exit 2
fi
rm -vrf miniboost/
mkdir -vp miniboost/
bcp --boost="$boost" boost/shared_array.hpp boost/concept_check.hpp \
boost/scoped_ptr.hpp boost/circular_buffer.hpp boost/scoped_array.hpp \
boost/shared_ptr.hpp boost/enable_shared_from_this.hpp boost/weak_ptr.hpp \
boost/bind.hpp boost/multi_index_container.hpp boost/foreach.hpp \
boost/multi_index/member.hpp boost/multi_index/ordered_index.hpp miniboost/