F1: Project skeleton and pinned engine
Add the Godot 4.7.2 project, src/ module layout, LFS rules, licences, CLAUDE.md and the devlog. tools/godot.sh runs the repo-local engine, headless by default, and keeps engine data inside the repo. The engine version and SHA-512 sums are recorded in tools/. make check verifies the engine, checks binaries and parses every script. Closes #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# Fails if a tracked binary file over 1 MB is stored in plain git instead of LFS.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||
|
||||
limit=$((1024 * 1024))
|
||||
status=0
|
||||
while IFS= read -r -d '' path; do
|
||||
[[ -f "$path" ]] || continue
|
||||
size="$(stat -c %s "$path")"
|
||||
((size > limit)) || continue
|
||||
# grep -I treats a file containing NUL bytes as non-matching, so text matches.
|
||||
if grep -Iq . "$path"; then
|
||||
continue
|
||||
fi
|
||||
filter="$(git check-attr filter -- "$path" | awk '{print $NF}')"
|
||||
if [[ "$filter" != "lfs" ]]; then
|
||||
echo "Binary over 1 MB is not in LFS: $path ($size bytes)" >&2
|
||||
status=1
|
||||
fi
|
||||
done < <(git ls-files -z)
|
||||
exit "$status"
|
||||
Reference in New Issue
Block a user