diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 17:36:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-29 17:36:56 -0500 |
| commit | 44ad26b648a79503303c596bb20a6995255dc630 (patch) | |
| tree | abbff5339122f3afab16e02609d60d9770ed531f /scripts/format.sh | |
| parent | 5436cda3bdaeb46c59889b39f259f7e385be0791 (diff) | |
| parent | bb303088aa2ed0693e19e93158155dd85783ce76 (diff) | |
Merge pull request #93 from nekernel-org/dev
chore: pack scripts into a directory.
Diffstat (limited to 'scripts/format.sh')
| -rwxr-xr-x | scripts/format.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 00000000..f36943cd --- /dev/null +++ b/scripts/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 |
