summaryrefslogtreecommitdiff
path: root/bin/fixincludeguards.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fixincludeguards.sh')
-rwxr-xr-xbin/fixincludeguards.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh
index 1dfceaa148d2..2655534aa416 100755
--- a/bin/fixincludeguards.sh
+++ b/bin/fixincludeguards.sh
@@ -28,7 +28,9 @@ for fn in "$@"; do
# global header in include/ top level dir:
# drop the project dir
- fnfixed=`echo $fn | sed 's,\(include\|odk/examples/cpp\|odk/examples/DevelopersGuide\)/,,g'`
+ fnfixed=`echo $fn | sed 's,include/,,g'`
+ # add examples prefix to headers in odk/examples
+ fnfixed=`echo $fnfixed | sed 's,odk/examples/\(cpp\|DevelopersGuide\|OLE\)/,examples_,g'`
# convert file path to header guard
guard=`echo "$fnfixed" | sed 's/[\/\.-]/_/g' | tr 'a-z' 'A-Z'`