Changeset a4eb3ba2 in mainline for tools/build-ccheck.sh


Ignore:
Timestamp:
2018-05-22T14:21:15Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86b70c6
Parents:
904b1bc
git-author:
Jiri Svoboda <jiri@…> (2018-05-21 18:20:15)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-22 14:21:15)
Message:

Fail if ccheck issues are found. Make sure we always use the right ccheck revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/build-ccheck.sh

    r904b1bc ra4eb3ba2  
    2828#
    2929
    30 git clone https://github.com/jxsvoboda/sycek sycek
     30SYCEK_GIT="https://github.com/jxsvoboda/sycek sycek"
     31SYCEK_REV="722f6c377875ea9e471d77e7486c8d06f0a73ff7"
     32
     33if [ ! -d sycek ]; then
     34        git clone https://github.com/jxsvoboda/sycek sycek
     35fi
     36
    3137cd sycek
    32 make
     38
     39# Make sure we have the required revision
     40echo "Making sure Sycek is up to date..."
     41git checkout "$SYCEK_REV" 2>/dev/null
     42rc=$?
     43if [ $rc != 0 ]; then
     44        echo "Pulling from Sycek repo..."
     45        git checkout master
     46        git pull
     47        git checkout "$SYCEK_REV" 2>/dev/null
     48        rc=$?
     49        if [ $rc != 0 ]; then
     50                echo "Error checking out Sycek rev $SYCEK_REV"
     51                exit 1
     52        fi
     53
     54        make clean || exit 1
     55        make || exit 1
     56else
     57        make >/dev/null || exit 1
     58fi
Note: See TracChangeset for help on using the changeset viewer.