Changeset 40c0483 in mainline for tools/ccheck.sh
- Timestamp:
- 2019-08-16T20:58:02Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d3db35b
- Parents:
- 5284faa
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-21 14:03:59)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-16 20:58:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ccheck.sh
r5284faa r40c0483 1 #!/bin/ bash1 #!/bin/sh 2 2 # 3 3 # Copyright (c) 2018 Jiri Svoboda … … 33 33 fi 34 34 35 if [ ."$1" = = .--fix ]; then35 if [ ."$1" = .--fix ]; then 36 36 opt=--fix 37 37 else … … 49 49 outfile="$(mktemp)" 50 50 "$ccheck" $opt $fname >"$outfile" 2>&1 51 rc=$? 52 if [ .$rc == .0 ]; then 51 if [ $? -eq 0 ]; then 53 52 if [ -s "$outfile" ] ; then 54 53 srepcnt=$((srepcnt + 1)) … … 65 64 done 66 65 67 if [ $srepcnt == 0 -a $fcnt == 0 ]; then66 if [ $srepcnt -eq 0 ] && [ $fcnt -eq 0 ]; then 68 67 echo "Ccheck passed." 69 68 else
Note:
See TracChangeset
for help on using the changeset viewer.