Files
sunnypilot/scripts/lint/check_raylib_includes.sh
T
github-actions[bot] 705bfb5e34 sunnypilot v2026.04.10-4382
version: sunnypilot v2026.001.000 (feature-branch)
date: 2026-04-10T09:48:29
master commit: e541489b33
2026-04-10 09:48:29 +00:00

11 lines
256 B
Bash
Executable File

#!/usr/bin/env bash
FAIL=0
if grep -n '#include "third_party/raylib/include/raylib\.h"' $@ | grep -v '^system/ui/raylib/raylib\.h'; then
echo -e "Bad raylib include found! Use '#include \"system/ui/raylib/raylib.h\"' instead\n"
FAIL=1
fi
exit $FAIL