Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Boost: don't delete the old headers until the new version builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Jun 2, 2016
1 parent fa6a5e8 commit d35390f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build/pkgs/boost/spkg-install
Expand Up @@ -6,10 +6,6 @@ if [ "$SAGE_LOCAL" = "" ]; then
exit 1
fi

echo "Clean out old boost headers and libraries"
rm -rf "$SAGE_LOCAL"/include/boost
rm -rf "$SAGE_LOCAL"/lib/libboost*

cd src

echo "Running boost bootstrap"
Expand All @@ -19,6 +15,18 @@ if [[ $? -ne 0 ]]; then
exit 1
fi

echo "Building boost"
./b2
if [[ $? -ne 0 ]]; then
echo >&2 "Failed to build boost."
exit 1
fi

echo "Clean out old boost headers and libraries"
rm -rf "$SAGE_LOCAL"/include/boost
rm -rf "$SAGE_LOCAL"/lib/libboost*

echo "Installing boost"
./b2 install --prefix="$SAGE_LOCAL"
if [[ $? -ne 0 ]]; then
echo >&2 "Failed to install boost."
Expand Down

0 comments on commit d35390f

Please sign in to comment.