scopedvr-map-editor/tools/parse_check_shortcuts3.sh

18 lines
566 B
Bash
Executable file

#!/bin/bash
# Parse-Check der Shortcuts-3-Karte (t_11b5c25b): alle geänderten/neuen Scripts.
cd "$(dirname "$0")/.."
GODOT=/opt/data/home/bin/godot4
fail=0
for f in src/ui/main.gd src/ui/help_text.gd src/editor/shortcut_keys.gd \
src/editor/shortcut_policy.gd \
tests/test_shortcuts.gd tests/test_gui_smoke.gd; do
out=$("$GODOT" --headless --path . --check-only --script "res://$f" 2>&1 | grep -iv "godot engine\|^$" || true)
if [ -n "$out" ]; then
echo "FAIL $f:"
echo "$out"
fail=1
else
echo "OK $f"
fi
done
exit $fail