summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-10-23 16:28:32 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-10-23 23:22:27 +0200
commita91068b83baca886d080215728597f5ae06d459d (patch)
tree81399f63410830430ce14242976da2a37f396ef8 /bin
parent52a7238aedc157f47ed036d8c08b705464d13f6a (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-xbin/fixincludeguards.sh10
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...