Changeset 3e828ea in mainline for tools/ccheck.sh


Ignore:
Timestamp:
2019-09-23T12:49:29Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be2358
Parents:
9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
Message:

Merge changes from master, especially Meson build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ccheck.sh

    r9259d20 r3e828ea  
    1 #!/bin/bash
     1#!/bin/sh
    22#
    33# Copyright (c) 2018 Jiri Svoboda
     
    3333fi
    3434
    35 if [ ."$1" == .--fix ] ; then
     35if [ ."$1" = .--fix ]; then
    3636        opt=--fix
    3737else
     
    4949        outfile="$(mktemp)"
    5050        "$ccheck" $opt $fname >"$outfile" 2>&1
    51         rc=$?
    52         if [ .$rc == .0 ]; then
     51        if [ $? -eq 0 ]; then
    5352                if [ -s "$outfile" ] ; then
    5453                        srepcnt=$((srepcnt + 1))
     
    6564done
    6665
    67 if [ $srepcnt == 0 -a $fcnt == 0 ] ; then
     66if [ $srepcnt -eq 0 ] && [ $fcnt -eq 0 ]; then
    6867        echo "Ccheck passed."
    6968else
Note: See TracChangeset for help on using the changeset viewer.