Skip to content

Instantly share code, notes, and snippets.

@fosterbrereton
Last active December 29, 2015 13:49
Show Gist options
  • Save fosterbrereton/7680303 to your computer and use it in GitHub Desktop.
Save fosterbrereton/7680303 to your computer and use it in GitHub Desktop.
Working with Boost in git
#!/bin/bash
# Boost is now using git submodules, where each Boost library has its own. These are coalesced
# into a top-level boost repository. Grabbing a snapshot of boost, then, involves cloning the
# top-level repo and using bjam to build the familiar top-level boost/ headers directory.
git clone --recursive [email protected]:boostorg/boost.git
cd boost
./bootstrap.sh # Build bjam
./b2 headers # Set up the boost/ headers directory, which will create symlinks to the actual files
# Updating to the top of boost, then, is a matter of calling update on the submodules within the
# top-level project:
cd boost
git submodule update --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment