15 lines
331 B
Bash
15 lines
331 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
source $(dirname $0)/env.sh
|
||
|
|
||
|
cd $LUNA_ROOT
|
||
|
|
||
|
SOURCES=($(find kernel/src -type f | grep "\.c") $(find kernel/include -type f))
|
||
|
SOURCES+=($(find libs/libc/src -type f | grep "\.c") $(find libs/libc/include -type f))
|
||
|
SOURCES+=($(find apps/src -type f))
|
||
|
|
||
|
for f in ${SOURCES[@]}
|
||
|
do
|
||
|
clang-format $f -i
|
||
|
done
|