diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-04-18 20:51:17 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-04-19 11:10:10 +0200 |
commit | 3305073e6d6f4c491b0e0322b5208cb6edb8645d (patch) | |
tree | 9ff8b3b4842de232134d6b673137c8a3d5297581 /bin/fixincludeguards.sh | |
parent | f400bdce03262d2a5f3fbf34897c5ddde153152c (diff) |
fixincludeguards.sh: improve regex
handle the following expression correctly:
endif /* !INCLUDED_TDOC_DATASUPPLIER_HXX */
Change-Id: I0c8b31464c9545bdbbb1371f13134f2cc89aad71
Diffstat (limited to 'bin/fixincludeguards.sh')
-rwxr-xr-x | bin/fixincludeguards.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh index d788e4878e7d..4c3e409a88dc 100755 --- a/bin/fixincludeguards.sh +++ b/bin/fixincludeguards.sh @@ -77,7 +77,7 @@ for fn in "$@"; do ### clean up endif - sed -i "s/#endif\s*\(\/\/\|\/\*\)\s*\#\?\(ifndef\)\?\s*\(${guard_prefix}${guard}\).*/#endif \/\/ \3/g" "$fn" + sed -i "s/#endif\s*\(\/\/\|\/\*\)\s*\#\?\(ifndef\)\?\s*!\?\s*\(${guard_prefix}${guard}\).*/#endif \/\/ \3/g" "$fn" fi done |