summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-04-18 18:14:53 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-04-19 11:10:05 +0200
commit4c2a736360a810199e8748533022ac38446b83ed (patch)
treefc3429256bd4f4603238bb6ebad88f247ee29f70 /bin
parentf79c283c535148c793781c23f22fdf8b41dab377 (diff)
fixincludeguards.sh: add some more types
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixincludeguards.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh
index ceed3a31b56c..d788e4878e7d 100755
--- a/bin/fixincludeguards.sh
+++ b/bin/fixincludeguards.sh
@@ -9,7 +9,7 @@
# Usage:
# a) fixincludeguards.sh header.hxx
-# b) find . -name *.hxx -or -name *.h | xargs sh fixincludeguards.sh
+# b) find . -name *.hxx -or -name *.h | xargs bash ./bin/fixincludeguards.sh
# TODO: This doesn't fix wrong #endif comments, like:
# #ifndef FOO_BAR_HXX
@@ -38,7 +38,7 @@ for fn in "$@"; do
# pattern which identifies guards, common one look like
# _MODULE_FILE_HXX, FILE_H, FILE_INC
- pattern=".*\(_HXX\|_H\|_INC\)"
+ pattern=".*\(_HXX\|_H\|_INC\|_hxx\|_h\|_inc\)"
### extract guard definition
# head to take only the first match