summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-06-03 12:36:21 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-06-03 12:36:48 +0200
commitf0546a51ada8dc4f4436861e03e086938e9dd555 (patch)
treec7a12a3dd35010f6e44e775e179335948259f26b /bin
parentd758fb4d34a6f524b05fca6342a8e6a80e99d9e9 (diff)
odk/examples: mark them as examples
Change-Id: Ie4b925b2411f2a26076de7d0dc367678b390dba8
Diffstat (limited to 'bin')
-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'`