[Libreoffice-commits] .: solenv/bin

Tor Lillqvist tml at kemper.freedesktop.org
Wed Jun 29 10:58:30 PDT 2011


 solenv/bin/add-modelines |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit bf25776042fe55187a278bfe46994a1ebf3e194c
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Jun 29 20:55:26 2011 +0300

    Handle *.mm files too, don't use non-portable comma operator of find(1)

diff --git a/solenv/bin/add-modelines b/solenv/bin/add-modelines
index 71d4209..e7491c2 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"


More information about the Libreoffice-commits mailing list