scopedvr-map-editor/tools/parse_check.sh

15 lines
544 B
Bash
Executable file

#!/bin/bash
# Parse-Check über alle geänderten/neuen Scripts (Karte t_3a998ae4)
cd "$(dirname "$0")/.."
GODOT=~/bin/godot4
fail=0
for f in src/ui/main.gd src/editor/test_run.gd src/editor/library_browser.gd src/editor/object_ops.gd \
src/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