#!/usr/bin/env bash

curl -L "https://docs.google.com/spreadsheets/d/1pv-WMXReccddPwev_YG9IXEGznuGHrYjNNEZ0Rb-ZhM/export?gid=0&format=tsv" > src/main/resources/net/eagle0/shardok/settings.tsv
curl -L "https://docs.google.com/spreadsheets/d/1p6I5nUMcoAPHIcqikVgbBCFVnqN9dpOEVClbS_wOI7M/export?gid=0&format=tsv" > src/main/resources/net/eagle0/eagle/settings.tsv

bazel run //src/main/go/net/eagle0/build/settings_generator:settings_generator -- \
    ${PWD}/src/main/resources/net/eagle0/eagle/settings.tsv \
    ${PWD}/src/main/scala/net/eagle0/eagle/library/settings/
