kde-extraapps/boost.sh
2014-12-01 20:43:15 +00:00

23 lines
No EOL
603 B
Bash
Executable file

#!/bin/sh
set -e
boost=""
for dir in "/include" "/usr/include" "/usr/local";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
"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 miniboost/