mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 11:23:45 +00:00
7835983560
Add new option --report to create an HTML report (shows dependencies at the end).
52 lines
979 B
Bash
Executable File
52 lines
979 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Script to extract only needed boost files using the bcp tool:
|
|
#
|
|
# http://www.boost.org/doc/libs/1_47_0/tools/bcp/doc/html/index.html
|
|
#
|
|
# Does also work with an outdated bcp version
|
|
#
|
|
# Usage: extract.sh <path to new boost version>
|
|
#
|
|
|
|
HEADERS="\
|
|
boost/any.hpp \
|
|
boost/assert.hpp \
|
|
boost/crc.hpp \
|
|
boost/lexical_cast.hpp \
|
|
boost/signals2/signal.hpp \
|
|
"
|
|
|
|
if [ -z $1 ]
|
|
then
|
|
echo "Usage: extract.sh [--report] <path to new boost version>"
|
|
echo "Update our local boost copy"
|
|
echo "With --report, create a HTML report that contains in particular the dependencies"
|
|
exit 1
|
|
fi
|
|
|
|
if [ x$1 = x--report ]; then
|
|
bcp --boost=$2 --report $HEADERS report.html
|
|
exit 0;
|
|
fi
|
|
|
|
|
|
rm -rf needed
|
|
mkdir needed
|
|
|
|
bcp --boost=$1 $HEADERS needed/
|
|
|
|
# we do not use the provided MSVC project files
|
|
find needed -name '*.vcpro*' | xargs rm
|
|
|
|
# remove old boost headers
|
|
find boost -name \*.hpp | xargs rm
|
|
|
|
# copy new headers
|
|
cp -vR needed/boost .
|
|
|
|
rm -rf needed
|
|
|
|
|