Add microtar to dependencies
This commit is contained in:
parent
bc980e72bf
commit
385bba4949
@ -21,15 +21,20 @@ SOL_TAG=v2.17.5
|
|||||||
RAPIDJSON_REPO="https://github.com/miloyip/rapidjson.git"
|
RAPIDJSON_REPO="https://github.com/miloyip/rapidjson.git"
|
||||||
RAPIDJSON_TAG=v1.1.0
|
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")
|
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")
|
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")
|
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")
|
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 osmium release is $OSMIUM_LATEST, pulling in \"$OSMIUM_TAG\""
|
||||||
echo "Latest variant release is $VARIANT_LATEST, pulling in \"$VARIANT_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 sol2 release is $SOL_LATEST, pulling in \"$SOL_TAG\""
|
||||||
echo "Latest rapidjson release is $RAPIDJSON_LATEST, pulling in \"$RAPIDJSON_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
|
read -p "Update osmium (y/n) " ok
|
||||||
if [[ $ok =~ [yY] ]]
|
if [[ $ok =~ [yY] ]]
|
||||||
@ -70,3 +75,13 @@ then
|
|||||||
git subtree add -P third_party/rapidjson/ $RAPIDJSON_REPO $RAPIDJSON_TAG --squash
|
git subtree add -P third_party/rapidjson/ $RAPIDJSON_REPO $RAPIDJSON_TAG --squash
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user