summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 17:37:25 -0500
committerGitHub <noreply@github.com>2025-11-29 17:37:25 -0500
commit04dbea051faeab5e75d4e9f84f8983944cc6fed4 (patch)
treecaf07b934ffcef0b71e3cd4fcb365fa2b4c8eb53 /scripts
parent73e7bfb7e3dc3b48763fdd7c84f4362eb46a9e1a (diff)
parentf9f37f902ab02b7d2ec1a23dd5af767c44f64a55 (diff)
Merge pull request #38 from nekernel-org/dev
chore: pack scripts in one directory.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/format.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755
index 0000000..49b0b41
--- /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 \ No newline at end of file