Changes in / [c9e09f2:fd68aaf] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ccheck.sh

    rc9e09f2 rfd68aaf  
    3636find abi kernel boot uspace -type f -regex '^.*\.[ch]$' | (
    3737while read fname; do
    38         $ccheck $fname >/tmp/ccheck.out 2>&1
     38        outfile="$(mktemp)"
     39        $ccheck $fname >"$outfile" 2>&1
    3940        rc=$?
    4041        if [ .$rc == .0 ]; then
    41                 if [ -s /tmp/ccheck.out ] ; then
     42                if [ -s "$outfile" ] ; then
    4243                        srepcnt=$((srepcnt + 1))
    43                         echo '**' Reports for file $fname: '**'
    44                         cat /tmp/ccheck.out
     44                        cat "$outfile"
    4545                else
    4646                        snorepcnt=$((snorepcnt + 1))
     
    4949                fcnt=$((fcnt + 1))
    5050        fi
     51
     52        rm -f "$outfile"
    5153done
    5254
Note: See TracChangeset for help on using the changeset viewer.