Lines Matching +full:opt +full:- +full:in
6 # SPDX-License-Identifier: Apache-2.0
12 # usage: maintainer-checkpatch.bash [(-n <num commits>) | (-c <commit>)] [-s]
13 # where: -n <num commits> selects the last n commits (default: 1)
14 # -c <commit> selects the "since" commit
15 # -s asks for a summary instead of details
17 # -c and -n are mutually exclusive
20 --patch \
21 --no-tree \
22 --show-types \
23 --max-line-length=100 \
28 timestamp="${timestamp_bin} -u"
30 checkpatch="${checkpatch_bin} ${checkpatch_switches} --ignore ${ignore_list}"
33 outdir=/tmp/${exe_name}-${ts}
40 printf "usage: %s [(-n <num commits>) | (-c <commit>)] [-s]\n" $exe_name >&2
45 exit -1
49 printf "'git format-patch' failed\n"
50 exit -1
58 for i in $needed; do
61 printf "need '%s' but not found in PATH\n" $i >&2
62 exit -1
68 declare -r optstr="n:c:sh"
69 while getopts ${optstr} opt; do
70 case ${opt} in
79 if [ ${num_commits} != 1 -a "x${since_commit}" != x ]; then
92 git format-patch ${since} -o ${outdir} 2>/dev/null >/dev/null
95 for i in $(ls ${outdir}/*); do
104 rm -rf ${outdir}