3 ###########################################################################
5 # Copyright 2013 BMW Car IT GmbH
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 ###########################################################################
23 DIRECTORY=$(cd `dirname $0` && pwd)
28 echo "----------------------------------------"
30 TEMP_FILENAME=".check_style_temp.`date +%s%N`"
32 TARGET_FILES="`find -iname *.cpp -or -iname *.h -or -iname *.c | grep -vi \/tests\/ | grep -vi \/test\/ | grep -vi 3rdParty | grep -vi \/LayerManagerExamples\/ | grep -vi \config\/`"
34 for t_file in $TARGET_FILES
36 python scripts/check_all_styles.py $t_file | tee $TEMP_FILENAME -a
39 LINES=`cat $TEMP_FILENAME | wc -l`
41 echo -e "\nTotal number of warnings: $LINES"