2022-11-08 18:07:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
source $(dirname $0)/env.sh
|
|
|
|
|
|
|
|
cd $LUNA_ROOT
|
|
|
|
|
2022-11-16 16:37:18 +00:00
|
|
|
SOURCES=($(find kernel/src -type f | grep -v "\.asm"))
|
2023-03-07 20:07:18 +00:00
|
|
|
SOURCES+=($(find libluna/src -type f))
|
|
|
|
SOURCES+=($(find libluna/include/luna -type f))
|
2022-11-08 18:07:16 +00:00
|
|
|
|
|
|
|
for f in ${SOURCES[@]}
|
|
|
|
do
|
|
|
|
clang-format $f -i
|
|
|
|
done
|