add editions

This commit is contained in:
Maple 2025-11-13 14:06:08 +01:00
commit 31d495c932
10 changed files with 85 additions and 336 deletions

9
buildscripts/common.sh Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
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"
done <<< "$SETTINGS"