diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 21:43:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-29 21:43:30 -0500 |
| commit | eea9136a2ef0758233d7b58f2a9e4b37f2d91354 (patch) | |
| tree | 7ce9f1eeb130b564e5298f1ffed2c01a6e3a79e1 /format.sh | |
| parent | 0c4df216280fb31a18f933a0fc9abd8efdc81305 (diff) | |
| parent | f9d7e440829fb5899198517396bbc7e580ecb801 (diff) | |
Merge pull request #15 from nekernel-org/devv0.0.7
chore: move format.sh to root
Diffstat (limited to 'format.sh')
| -rwxr-xr-x | format.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..f36943c --- /dev/null +++ b/format.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +THIS_PATH="$(realpath "$0")" +THIS_DIR="$(dirname "$THIS_PATH")" + +FILE_LIST="$(find "$THIS_DIR" | grep -E ".*(\.cc|\.c|\.h|\.inl)$")" + +echo -e "Files found to format = \n\"\"\"\n$FILE_LIST\n\"\"\"" + +clang-format --verbose -i --style=file $FILE_LIST |
