summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-18 14:05:42 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-18 14:32:34 +0200
commite0f08c06aa49e9c3d63f57ffb643d0eba561096e (patch)
tree6e9f5ba0c2b99d38c091dab3758e74e3eefc38fb /bin
parenta7eae9c280d860ca12b6300539404bec16700a7b (diff)
fixincludeguards.pl: handle odk/examples
Now we have nice example header guards ;) Change-Id: I1a5f8031cf267abf67dc4fbb20880d23e3640867
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixincludeguards.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh
index 4c3e409a88dc..6bdb59ec26ef 100755
--- a/bin/fixincludeguards.sh
+++ b/bin/fixincludeguards.sh
@@ -28,7 +28,7 @@ for fn in "$@"; do
# global header in include/ top level dir:
# drop the project dir
- fnfixed=`echo $fn | sed 's/include\///g'`
+ fnfixed=`echo $fn | sed 's/\(include\|odk\/examples\/cpp\)\///g'`
# convert file path to header guard
guard=`echo "$fnfixed" | sed 's/[\/\.-]/_/g' | tr 'a-z' 'A-Z'`