#!/usr/bin/env bash set -e source $(dirname $0)/env.sh cd $LUNA_ROOT SOURCES=($(find kernel/src -type f | grep -v "\.asm")) SOURCES+=($(find libluna/src -type f)) SOURCES+=($(find libluna/include/luna -type f)) SOURCES+=($(find libos/src -type f)) SOURCES+=($(find libos/include/os -type f)) for f in ${SOURCES[@]} do clang-format $f -i done