rust-nex/buildscripts/common.sh
Maple 7f27ad0a3c
All checks were successful
Build and Test / friends (push) Successful in 2m56s
Build and Test / splatoon (push) Successful in 3m38s
fix more warnings and add script to check all editions
2026-04-26 13:48:26 +02:00

11 lines
417 B
Bash
Executable file

#!/usr/bin/env bash
set -e pipefail
TMP_FEATURES_TRAILINGCOMMA=$(yq ea ".$EDITION.features" editions.yaml | sed 's/- //g' | tr '\n' ',')
export EDITION_FEATURES=${TMP_FEATURES_TRAILINGCOMMA::-1}
SETTINGS=$(yq ea ".$EDITION.settings" editions.yaml | yq 'keys[]')
IFS=$'\n'
while IFS=$'\n' read -r KEY; do
VAL=$(yq ea ".$EDITION.settings.$KEY" editions.yaml)
declare "$KEY=$VAL"
export $KEY
done <<< "$SETTINGS"