From beb2ab9ad560be87d718397b3eca34fd7a55a5f0 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Wed, 19 Aug 2015 19:26:07 +0200 Subject: [PATCH] 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? --- update_depdendencies.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 update_depdendencies.sh diff --git a/update_depdendencies.sh b/update_depdendencies.sh new file mode 100755 index 000000000..13ecb7191 --- /dev/null +++ b/update_depdendencies.sh @@ -0,0 +1,11 @@ +#!/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