Skip to content

Commit

Permalink
Merge branch 'master' into fix-boost-1-86
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen authored Feb 19, 2025
2 parents af0c931 + 69f4306 commit 2e905dc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/install-boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
# Installs Boost from source
# usage: ./install-boost.sh <version>

set -e
set -o errexit ${RUNNER_DEBUG:+-x}

if [ "$#" -ne 1 ]; then
if [[ "$#" -ne 1 ]]; then
echo "usage: $0 <version>"
exit 1
fi

TARBALL_NAME=boost_$(echo "$1" | tr . _)

curl --silent -Lo $TARBALL_NAME.tar.gz https://boostorg.jfrog.io/artifactory/main/release/$1/source/$TARBALL_NAME.tar.gz
tar xzf $TARBALL_NAME.tar.gz
cd $TARBALL_NAME
curl --silent --location "https://archives.boost.io/release/${1}/source/${TARBALL_NAME}.tar.gz" | tar xzf -
pushd "${TARBALL_NAME}"
./bootstrap.sh
./b2 --with-thread --with-chrono install
cd ..
popd

0 comments on commit 2e905dc

Please sign in to comment.