fix: promote-shipped.sh kennt den umbenannten Plan und die neue Syntax

Der Rename example-werkbaum.werkbaum → werkbaum.werkbaum (82f34b2) hatte
das Skript nicht erreicht — der Deploy brach mit „Plan nicht gefunden"
ab. Dazu die Statusbox-Erkennung um das =-Gate und die Faltmarken >/<
erweitert (SPEC §1), damit auch `- > [x] …`-Zeilen befördert werden.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
mhoennig
2026-08-22 19:50:56 +02:00
co-authored by Claude Fable 5
parent 5911609d2e
commit 4706541517
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -54,12 +54,13 @@ done
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
PLAN="docs/examples/example-werkbaum.werkbaum"
PLAN="docs/examples/werkbaum.werkbaum"
[ -f "$PLAN" ] || { echo "Plan nicht gefunden: $PLAN" >&2; exit 1; }
# Nur Statusboxen am Zeilenanfang (nach optionalem Zeichen -/+/|), damit ein
# „[x]" mitten im Label unangetastet bleibt. `x` auch als `X` (SPEC §4).
MATCH='^([[:space:]]*([-+|][[:space:]]*)?)\[[xX]\]'
# Nur Statusboxen am Zeilenanfang nach optionalem Zeichen -/+/|/= und
# optionaler Faltmarke >/< (SPEC §1) —, damit ein „[x]" mitten im Label
# unangetastet bleibt. `x` auch als `X` (SPEC §4).
MATCH='^([[:space:]]*([-+|=][[:space:]]*)?([<>][[:space:]]+)?)\[[xX]\]'
mapfile -t HITS < <(grep -nE "$MATCH" "$PLAN" || true)
@@ -88,7 +89,7 @@ fi
# Labels für den Commit-Text sammeln (ohne Zeichen, Statusbox und Größe).
mapfile -t LABELS < <(printf '%s\n' "${HITS[@]}" \
| sed -E 's/^[0-9]+:[[:space:]]*([-+|][[:space:]]*)?\[[xX]\][[:space:]]*//' \
| sed -E 's/^[0-9]+:[[:space:]]*([-+|=][[:space:]]*)?([<>][[:space:]]+)?\[[xX]\][[:space:]]*//' \
| sed -E 's/[[:space:]]*\((XS|S|M|L|XL|XXL)\)[[:space:]]*$//')
IS_GIT=0