summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-29 23:57:32 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-29 23:57:32 +0100
commite0ca2d19231c50543a6dc6bcc6335a3f9a84c595 (patch)
treeaf4a581ebb6aacb456ea493a16a9934e01b5dcef /scripts
parentfix(src): Add some default stuff (diff)
downloadqmk_layout-e0ca2d19231c50543a6dc6bcc6335a3f9a84c595.zip
feat(src): Make usable
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/format.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755
index 0000000..d9db529
--- /dev/null
+++ b/scripts/format.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env sh
+
+root="$(git rev-parse --show-toplevel)"
+
+final="$(mktemp)"
+
+format "$root/src/keymaps/soispha/layout/keymap.h" > "$final"
+
+git add "$root/src/keymaps/soispha/layout/keymap.h"
+
+cat "$final" > "$root/src/keymaps/soispha/layout/keymap.h"
+rm "$final"
+
+# vim: ft=sh