mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Cleanup extract.sh
Add new option --report to create an HTML report (shows dependencies at the end).
This commit is contained in:
parent
bf28a2677c
commit
7835983560
40
3rdparty/boost/extract.sh
vendored
40
3rdparty/boost/extract.sh
vendored
@ -10,38 +10,42 @@
|
|||||||
# Usage: extract.sh <path to new boost version>
|
# Usage: extract.sh <path to new boost version>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ -z $1 ]
|
HEADERS="\
|
||||||
then
|
|
||||||
echo "Usage: extract.sh <path to new boost version>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf needed
|
|
||||||
mkdir needed
|
|
||||||
|
|
||||||
bcp --boost=$1 \
|
|
||||||
boost/any.hpp \
|
boost/any.hpp \
|
||||||
boost/assert.hpp \
|
boost/assert.hpp \
|
||||||
boost/crc.hpp \
|
boost/crc.hpp \
|
||||||
boost/lexical_cast.hpp \
|
boost/lexical_cast.hpp \
|
||||||
boost/signals2/signal.hpp \
|
boost/signals2/signal.hpp \
|
||||||
\
|
"
|
||||||
needed
|
|
||||||
|
|
||||||
|
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
|
# we do not use the provided MSVC project files
|
||||||
find needed -name '*.vcpro*' | xargs rm
|
find needed -name '*.vcpro*' | xargs rm
|
||||||
|
|
||||||
|
# remove old boost headers
|
||||||
find boost -name \*.hpp | xargs rm
|
find boost -name \*.hpp | xargs rm
|
||||||
#find libs -name \*.cpp | xargs rm
|
|
||||||
|
|
||||||
|
# copy new headers
|
||||||
cp -vR needed/boost .
|
cp -vR needed/boost .
|
||||||
#cp -vR needed/libs .
|
|
||||||
|
|
||||||
rm -rf needed
|
rm -rf needed
|
||||||
|
|
||||||
# found by bcp but not needed by us
|
|
||||||
rm -rf boost/typeof
|
|
||||||
rm -rf libs/config
|
|
||||||
rm -rf libs/smart_ptr
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user