summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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