From 1fcdc082222826659245a4c39ff0cb1b11b02faf Mon Sep 17 00:00:00 2001 From: Jaroslaw Staniek Date: Mon, 25 May 2015 15:06:00 +0200 Subject: [PATCH] Missing "or" when looking for .cmake and CMakeLists.txt files REVIEW:123902 --- src/tools/port-cmake-style.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/tools/port-cmake-style.sh diff --git a/src/tools/port-cmake-style.sh b/src/tools/port-cmake-style.sh old mode 100644 new mode 100755 index e182e60ab..e339e4d7d --- a/src/tools/port-cmake-style.sh +++ b/src/tools/port-cmake-style.sh @@ -1,4 +1,4 @@ -for FS in `find $PWD -type f -name 'CMakeLists.txt' -name '*.cmake'`; do +for FS in `find $PWD -type f -name 'CMakeLists.txt' -o -name '*.cmake'`; do #all commands should be lowercase #http://techbase.kde.org/Policies/CMake_Coding_Style#Upper.2Flower_casing perl -p -i -e 's/^( *)([0-9A-Z_]*)( *)\(/$1.lc($2).$3."("/ge' $FS