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