scopedvr-map-editor/tools/parse_check_shortcuts.sh
2026-11-01 19:34:05 +01:00

19 lines
No EOL
676 B
Bash

#!/bin/bash
# Parse-Check der Shortcuts-1-Karte (t_c46d31c2): alle geänderten/neuen Scripts.
cd "$(dirname "$0")/.."
GODOT=~/bin/godot4
fail=0
for f in core/ui/main.gd core/viewport/orbit_camera.gd core/editor/shortcut_keys.gd \
core/editor/fly_math.gd core/editor/shortcut_policy.gd \
core/editor/selection_math.gd core/editor/interaction.gd core/editor/object_ops.gd \
tests/test_shortcuts.gd tests/test_ux.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