summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:16:54 -0500
committerGitHub <noreply@github.com>2025-11-29 21:16:54 -0500
commit0c4df216280fb31a18f933a0fc9abd8efdc81305 (patch)
tree20a18b5820519da8127a11c72ab1ebd523050ca9 /scripts
parente43bfe755f98022252e56aa89431edc983babb93 (diff)
parent1b5097d5035cb73a4845e914021851bf81186bfb (diff)
Merge pull request #14 from nekernel-org/dev
chore: NeBuildKit: Architectural improvements over {Defines+Includes}.h
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..f36943c
--- /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