Files
lunarwm/tools/format.sh
Slendi f74937bb6a Initial commit
Signed-off-by: Slendi <slendi@socopon.com>
2025-10-01 20:29:18 +03:00

9 lines
213 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(git rev-parse --show-toplevel)"
find "$ROOT/src" -type f -name '*.c' -o -name '*.h' -print0 | while IFS= read -r -d '' f; do
clang-format -i --style=file "$f"
done