subiquity/scripts/run-pep8

30 lines
555 B
Plaintext
Raw Normal View History

2018-05-21 19:52:38 +00:00
#!/bin/bash
# This file is part of subiquity. See LICENSE file for copyright and license info.
pycheck_dirs=(
"console_conf/"
"subiquity/"
"subiquitycore/"
"tests/"
)
bin_files=( )
CR="
"
[ "$1" = "-v" ] && { verbose="$1"; shift; } || verbose=""
set -f
if [ $# -eq 0 ]; then unset IFS
IFS="$CR"
files=( "${bin_files[@]}" "${pycheck_dirs[@]}" )
unset IFS
else
files=( "$@" )
fi
myname=${0##*/}
cmd=( "${myname#run-}" $verbose "${files[@]}" )
echo "Running: " "${cmd[@]}" 1>&2
exec "${cmd[@]}"
# vi: ts=4 expandtab syntax=sh