diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-10-23 16:28:32 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-10-23 23:22:27 +0200 |
commit | a91068b83baca886d080215728597f5ae06d459d (patch) | |
tree | 81399f63410830430ce14242976da2a37f396ef8 /bin | |
parent | 52a7238aedc157f47ed036d8c08b705464d13f6a (diff) |
correct indentation + remove guard names
because the script detects those as "used in other files"
Change-Id: Ifacb337338e60a194047689c16254154c867b606
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fixincludeguards.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh index ec47edf428f8..990a43bbfb47 100755 --- a/bin/fixincludeguards.sh +++ b/bin/fixincludeguards.sh @@ -28,7 +28,7 @@ for fn in "$@"; do [ aa"`git grep -h "^\s*#define ${guard_prefix}$guard" "$fn" | wc -l`" != "aa1" ]; then # pattern which identifies guards, common one look like - # _XMLOFF_ANIMEXP_HXX, BENTOID_H, IXFOBJECT_INC + # _MODULE_FILE_HXX, FILE_H, FILE_INC pattern=".*\(_HXX\|_H\|_INC\)" ### extract guard definition @@ -41,10 +41,10 @@ for fn in "$@"; do fi - if [ aa"`git grep -w "$old_guard" | cut -d ':' -f1 | sort -u | wc -l `" != aa"1" ]; then - echo -e "$fn: \e[00;31mwarning:\e[00m guard definition used in other files" - continue - fi + if [ aa"`git grep -w "$old_guard" | cut -d ':' -f1 | sort -u | wc -l `" != aa"1" ]; then + echo -e "$fn: \e[00;31mwarning:\e[00m guard definition used in other files" + continue + fi ### skip some special files... |