Changeset e347396 in mainline


Ignore:
Timestamp:
2018-01-19T16:49:59Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df2e5514
Parents:
17c14273
Message:

Add ccheck-fix makefile target to ask ccheck to attempt to fix cstyle issues.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r17c14273 re347396  
    7979        tools/ccheck.sh
    8080
     81ccheck-fix: $(CCHECK)
     82        tools/ccheck.sh --fix
     83
    8184$(CCHECK):
    8285        cd tools && ./build-ccheck.sh
  • tools/ccheck.sh

    r17c14273 re347396  
    3030ccheck=tools/sycek/ccheck
    3131
     32if [ ."$1" == .--fix ] ; then
     33        opt=--fix
     34else
     35        opt=
     36fi
     37
    3238srepcnt=0
    3339snorepcnt=0
     
    3743while read fname; do
    3844        outfile="$(mktemp)"
    39         $ccheck $fname >"$outfile" 2>&1
     45        $ccheck $opt $fname >"$outfile" 2>&1
    4046        rc=$?
    4147        if [ .$rc == .0 ]; then
Note: See TracChangeset for help on using the changeset viewer.