From 385bba4949ebd14bba4fbd1dfc67851844170c64 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Tue, 13 Mar 2018 14:14:13 +0000 Subject: [PATCH] Add microtar to dependencies --- scripts/update_dependencies.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/update_dependencies.sh b/scripts/update_dependencies.sh index a20ca5dce..0b7f33ec6 100755 --- a/scripts/update_dependencies.sh +++ b/scripts/update_dependencies.sh @@ -21,15 +21,20 @@ SOL_TAG=v2.17.5 RAPIDJSON_REPO="https://github.com/miloyip/rapidjson.git" RAPIDJSON_TAG=v1.1.0 +MICROTAR_REPO="https://github.com/rxi/microtar" +MICROTAR_TAG=v0.1.0 + VARIANT_LATEST=$(curl "https://api.github.com/repos/mapbox/variant/releases/latest" | jq ".tag_name") OSMIUM_LATEST=$(curl "https://api.github.com/repos/osmcode/libosmium/releases/latest" | jq ".tag_name") SOL_LATEST=$(curl "https://api.github.com/repos/ThePhD/sol2/releases/latest" | jq ".tag_name") RAPIDJSON_LATEST=$(curl "https://api.github.com/repos/miloyip/rapidjson/releases/latest" | jq ".tag_name") +MICROTAR_LATEST=$(curl "https://api.github.com/repos/rxi/microtar/releases/latest" | jq ".tag_name") echo "Latest osmium release is $OSMIUM_LATEST, pulling in \"$OSMIUM_TAG\"" echo "Latest variant release is $VARIANT_LATEST, pulling in \"$VARIANT_TAG\"" echo "Latest sol2 release is $SOL_LATEST, pulling in \"$SOL_TAG\"" echo "Latest rapidjson release is $RAPIDJSON_LATEST, pulling in \"$RAPIDJSON_TAG\"" +echo "Latest microtar release is $MICROTAR_LATEST, pulling in \"$MICROTAR_TAG\"" read -p "Update osmium (y/n) " ok if [[ $ok =~ [yY] ]] @@ -70,3 +75,13 @@ then git subtree add -P third_party/rapidjson/ $RAPIDJSON_REPO $RAPIDJSON_TAG --squash fi fi + +read -p "Update microtar (y/n) " ok +if [[ $ok =~ [yY] ]] +then + if [ -d "third_party/microtar" ]; then + git subtree pull -P third_party/microtar/ $MICROTAR_REPO $MICROTAR_TAG --squash + else + git subtree add -P third_party/microtar/ $MICROTAR_REPO $MICROTAR_TAG --squash + fi +fi