forked from Imagelibrary/seL4
This implements GitHub PR #115 on the current repo state. /usr/bin/env is already used for other (cmake/python/etc) invocations, and this PR brings bash/sh into line with that for slightly improved portability. Co-authored-by: Douglas Wilson <douglas.wilson@gmail.com> Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
20 lines
466 B
Bash
Executable File
20 lines
466 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
#
|
|
|
|
python_sources=$(find ../tools ../manual/tools ../libsel4/tools -name '*.py')
|
|
if [[ -z $python_sources ]]; then
|
|
echo "Unable to find python source files"
|
|
exit 1
|
|
fi
|
|
pylintrc=$(find . -name 'pylintrc')
|
|
if [[ -z $pylintrc ]]; then
|
|
echo "Unable to find pylintrc"
|
|
exit 1
|
|
fi
|
|
|
|
pylint --errors-only --rcfile=${pylintrc} ${python_sources}
|