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

15 lines
613 B
Bash
Executable file

#!/bin/bash
# Parse-Check über alle geänderten/neuen Scripts (Karte t_3a998ae4)
cd "$(dirname "$0")/.."
GODOT=/opt/data/home/bin/godot4
fail=0
for f in core/ui/main.gd core/ui/inspector_panel.gd tests/test_inspector.gd core/editor/test_run.gd core/editor/library_browser.gd core/editor/object_ops.gd \
core/editor/interaction.gd tools/gen_thumbs.gd tests/test_library.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