Missing "or" when looking for .cmake and CMakeLists.txt files

REVIEW:123902
This commit is contained in:
Jaroslaw Staniek 2015-05-25 15:06:00 +02:00
parent 81ec3e0d58
commit 1fcdc08222

2
src/tools/port-cmake-style.sh Normal file → Executable file
View File

@ -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