mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
* we are now past 3.15 so we're going to follow master * regenerate-openmaptiles.sh b3d67ed5b327c9059aeea0b3304772c6b4c8c7e9 (to match content of OMT PR 1661)
22 lines
473 B
Bash
Executable File
22 lines
473 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
# TODO: change to "v3.16" once that is released
|
|
TAG="${1:-"master"}"
|
|
echo "tag=${TAG}"
|
|
|
|
BASE_URL="${2:-"https://raw.githubusercontent.com/openmaptiles/openmaptiles/"}"
|
|
echo "base-url=${BASE_URL}"
|
|
|
|
echo "Building..."
|
|
./mvnw -DskipTests=true package
|
|
|
|
echo "Running..."
|
|
java -cp target/*-with-deps.jar org.openmaptiles.Generate -tag="${TAG}" -base-url="${BASE_URL}"
|
|
|
|
echo "Formatting..."
|
|
./scripts/format.sh
|