projects
/
qtrapids
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Script to unify code formatting according to "ansi" style
[qtrapids]
/
scripts
/
format_code.sh
diff --git a/scripts/format_code.sh
b/scripts/format_code.sh
new file mode 100644
(file)
index 0000000..
60ad045
--- /dev/null
+++ b/
scripts/format_code.sh
@@ -0,0
+1,7
@@
+#!/bin/sh
+
+find ../src \( -name '*.cpp' -and -not -name 'moc_*' -or -name '*.h' -or -name '*.hpp' \) -exec astyle --style=ansi --suffix=none {} \;
+
+
+
+