aboutsummaryrefslogtreecommitdiff
path: root/util/trim-whitespace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/trim-whitespace.sh')
-rwxr-xr-xutil/trim-whitespace.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/trim-whitespace.sh b/util/trim-whitespace.sh
new file mode 100755
index 0000000..34a9c58
--- /dev/null
+++ b/util/trim-whitespace.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i "s/[ \t]*$//" {} \; \ No newline at end of file