Changeset fb08c47 in mainline


Ignore:
Timestamp:
2018-03-29T12:43:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
483a3f4, ccea254
Parents:
f303afc6
git-author:
Jiri Svoboda <jiri@…> (2018-03-28 17:41:48)
git-committer:
Jiri Svoboda <jiri@…> (2018-03-29 12:43:07)
Message:

Let ccheck.sh give non-zero exit code if a file cannot be parsed by ccheck. Temporarily reduce amount of output - just list files with issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ccheck.sh

    rf303afc6 rfb08c47  
    3939snorepcnt=0
    4040fcnt=0
     41exitfile="$(mktemp)"
     42echo 0 >"$exitfile"
    4143
    4244find abi kernel boot uspace -type f -regex '^.*\.[ch]$' | (
     
    4850                if [ -s "$outfile" ] ; then
    4951                        srepcnt=$((srepcnt + 1))
    50                         cat "$outfile"
     52                        #cat "$outfile"
     53                        echo "$fname has issues"
    5154                else
    5255                        snorepcnt=$((snorepcnt + 1))
     
    5457        else
    5558                fcnt=$((fcnt + 1))
     59                cat "$outfile"
     60                echo 1 > "$exitfile"
    5661        fi
    5762
     
    6368echo "Not checked files: $fcnt"
    6469)
     70
     71exitcode=$(cat "$exitfile")
     72rm -rf "$exitfile"
     73
     74exit $exitcode
Note: See TracChangeset for help on using the changeset viewer.