projects
/
qtrapids
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb78d7
)
Script to unify code formatting according to "ansi" style
author
deztructor
<denis.zalewsky@gmail.com>
Wed, 18 Nov 2009 09:32:30 +0000
(09:32 +0000)
committer
deztructor
<denis.zalewsky@gmail.com>
Wed, 18 Nov 2009 09:32:30 +0000
(09:32 +0000)
To avoid differences in commits on the base of different indentation
style preferences. Script uses astyle utility and should be run before
any commit.
git-svn-id: file:///svnroot/qtrapids/trunk@30
42ac0dd5
-4c8c-4c71-bb3e-
ecdfe252ffda
scripts/format_code.sh
[new file with mode: 0644]
patch
|
blob
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 {} \;
+
+
+
+