Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add utils/reformat-code.sh

  • Loading branch information...
commit aa56b2f7224a90ecc12eba0a50589f3cce9e9a84 1 parent 95e91ff
@aalex aalex authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 utils/reformat-code.sh
View
8 utils/reformat-code.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+FILES=`ls shmdata/*.{h,c} examples/*.{c,cpp}`
+
+# reindent
+indent -gnu -sob $FILES
+#remove trailing spaces
+sed -i "s/[ \t]*$//" $FILES
+
Please sign in to comment.
Something went wrong with that request. Please try again.