Bundle mason.cmake and mason.sh
This commit is contained in:
committed by
Patrick Niklaus
parent
03bb6dc161
commit
7ecf3410bf
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cmake -P cmake/mason.cmake "$@"
|
||||
@@ -15,20 +15,15 @@ OSMIUM_TAG=v2.11.0
|
||||
VARIANT_REPO="https://github.com/mapbox/variant.git"
|
||||
VARIANT_TAG=v1.1.0
|
||||
|
||||
MASON_REPO="https://github.com/mapbox/mason.git"
|
||||
MASON_TAG=v0.7.0
|
||||
|
||||
SOL_REPO="https://github.com/ThePhD/sol2.git"
|
||||
SOL_TAG=v2.15.5
|
||||
|
||||
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")
|
||||
MASON_LATEST=$(curl "https://api.github.com/repos/mapbox/mason/releases/latest" | jq ".tag_name")
|
||||
SOL_LATEST=$(curl "https://api.github.com/repos/ThePhD/sol2/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 mason release is $MASON_LATEST, pulling in \"$MASON_TAG\""
|
||||
echo "Latest sol2 release is $SOL_LATEST, pulling in \"$SOL_TAG\""
|
||||
|
||||
read -p "Update osmium (y/n) " ok
|
||||
@@ -51,16 +46,6 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
read -p "Update mason (y/n) " ok
|
||||
if [[ $ok =~ [yY] ]]
|
||||
then
|
||||
if [ -d "third_party/mason" ]; then
|
||||
git subtree pull -P third_party/mason/ $MASON_REPO $MASON_TAG --squash
|
||||
else
|
||||
git subtree add -P third_party/mason/ $MASON_REPO $MASON_TAG --squash
|
||||
fi
|
||||
fi
|
||||
|
||||
read -p "Update sol2 (y/n) " ok
|
||||
if [[ $ok =~ [yY] ]]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user