#!/usr/bin/env bash

OSMIUM_REPO=https://github.com/osmcode/libosmium.git
OSMIUM_TAG=v2.3.0

VARIANT_REPO=https://github.com/mapbox/variant.git 
VARIANT_TAG=v1.0


git subtree pull -P third_party/libosmium/ $OSMIUM_REPO $OSMIUM_TAG --squash
git subtree pull -P third_party/variant/ $VARIANT_REPO $VARIANT_TAG --squash

Add script to update subtree-ed third party dependencies more easily.
Add script to update subtree-ed third party dependencies more easily.

Note: this updates the subtrees immediately.

Discussion: would it make sense to do something along the lines of:

    $ http --body https://api.github.com/repos/mapbox/variant/releases/latest | jq ".tag_name"
    "v1.0"

And warn the user if the latest release tag is not the tag the update
script was called with. Or at least ask for confirmation?
