2012-05-16 01:42:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# A shell script to update the boost subset within KiCad to newer version.
|
|
|
|
|
|
|
|
BOOST_VERSION=1_49_0
|
2012-05-16 12:01:40 +00:00
|
|
|
SRC_BOOST="/tmp/boost_$BOOST_VERSION/boost"
|
|
|
|
KICAD_BASE="/svn/kicad/testing.checkout"
|
2012-05-16 01:42:04 +00:00
|
|
|
DST_BOOST="$KICAD_BASE/include/boost"
|
|
|
|
|
|
|
|
# control the subset of boost libs used:
|
|
|
|
BOOST_DIRS="\
|
2012-05-16 02:27:27 +00:00
|
|
|
archive \
|
|
|
|
bind \
|
2012-05-16 01:42:04 +00:00
|
|
|
concept \
|
|
|
|
config \
|
|
|
|
detail \
|
|
|
|
exception \
|
|
|
|
functional \
|
|
|
|
heap \
|
|
|
|
integer \
|
|
|
|
iterator \
|
|
|
|
move \
|
|
|
|
mpl \
|
2012-05-16 02:27:27 +00:00
|
|
|
multi_index \
|
|
|
|
optional \
|
2012-05-16 01:42:04 +00:00
|
|
|
polygon \
|
|
|
|
preprocessor \
|
|
|
|
property_tree \
|
|
|
|
ptr_container \
|
|
|
|
range \
|
|
|
|
regex \
|
2012-05-16 02:27:27 +00:00
|
|
|
serialization \
|
2012-05-16 01:42:04 +00:00
|
|
|
smart_ptr \
|
|
|
|
tuple \
|
|
|
|
typeof \
|
|
|
|
type_traits \
|
|
|
|
unordered \
|
|
|
|
utility \
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
# remove all old BOOST include files using bzr
|
2012-05-16 12:01:40 +00:00
|
|
|
eval bzr rm --no-backup --quiet "$DST_BOOST/*"
|
2012-05-16 01:42:04 +00:00
|
|
|
|
|
|
|
# copy all *.hpp files in the base boost directory:
|
|
|
|
eval cp "$SRC_BOOST/*.hpp" "$DST_BOOST/"
|
|
|
|
|
|
|
|
# copy recursively all chosen boost libraries:
|
|
|
|
for D in $BOOST_DIRS; do
|
2012-05-16 12:01:40 +00:00
|
|
|
eval cp -r "$SRC_BOOST/$D" "$DST_BOOST/"
|
2012-05-16 01:42:04 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# tell bzr about the new files so they become part of the repo.
|
|
|
|
eval bzr add "$DST_BOOST/*"
|
|
|
|
|
|
|
|
eval echo "boost version: $BOOST_VERSION" > "$DST_BOOST/boost_version.txt"
|
|
|
|
|