diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-04-18 18:14:53 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-04-19 11:10:05 +0200 |
commit | 4c2a736360a810199e8748533022ac38446b83ed (patch) | |
tree | fc3429256bd4f4603238bb6ebad88f247ee29f70 /bin/fixincludeguards.sh | |
parent | f79c283c535148c793781c23f22fdf8b41dab377 (diff) |
fixincludeguards.sh: add some more types
Diffstat (limited to 'bin/fixincludeguards.sh')
-rwxr-xr-x | bin/fixincludeguards.sh | 4 |
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 |