diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-06-03 12:36:21 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-06-03 12:36:48 +0200 |
commit | f0546a51ada8dc4f4436861e03e086938e9dd555 (patch) | |
tree | c7a12a3dd35010f6e44e775e179335948259f26b /bin | |
parent | d758fb4d34a6f524b05fca6342a8e6a80e99d9e9 (diff) |
odk/examples: mark them as examples
Change-Id: Ie4b925b2411f2a26076de7d0dc367678b390dba8
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fixincludeguards.sh | 4 |
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'` |