summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-29 20:55:26 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-29 20:55:26 +0300
commit04da22088ebbe5418c9d14c31f52a0d7f42abcc0 (patch)
tree1b020fe8ccd12532f9ae152dcaf3f8dbb6e8a065 /solenv/bin
parent81b4a0aff796618220b2e08212a4880724db5f71 (diff)
Handle *.mm files too, don't use non-portable comma operator of find(1)
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/add-modelines8
1 files changed, 4 insertions, 4 deletions
diff --git a/solenv/bin/add-modelines b/solenv/bin/add-modelines
index 71d42090121d..e7491c24ac08 100755
--- a/solenv/bin/add-modelines
+++ b/solenv/bin/add-modelines
@@ -31,7 +31,7 @@ set -o posix
# Change these to taste
FirstLine='/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */'
LastLine='/* vim:set shiftwidth=4 softtabstop=4 expandtab: */'
-SourceFiles='*.cxx *.cpp *.hxx *.hpp *.c *.h'
+SourceFiles='*.cxx *.cpp *.hxx *.hpp *.c *.h *.mm'
# Set defaults (don't change these)
ModelineReplace="false"
@@ -160,11 +160,11 @@ if [ -z "$findPath" ]; then
fi
for FileType in ${SourceFiles}; do
- findArgs="$findArgs"' ( -iname '"$FileType"' -print ) , '
+ findArgs="$findArgs"' ( -iname '"$FileType"' -print -o -true ) -a '
done
-# This gets rid of the final " , " in the find argument list
-findArgs="${findArgs:0:(${#findArgs}-2)}"
+# This gets rid of the final " -a " in the find argument list
+findArgs="${findArgs:0:(${#findArgs}-3)}"
for file in $($findCMD $findArgs); do
EditFile "$file"