From: Greg Kroah-Hartman Date: Mon, 4 Feb 2019 09:06:59 +0000 (+0100) Subject: scripts/bad_stable: allow multiple kernel versions at the same time X-Git-Tag: v4.20.7~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af42601cd5b89ea831fd63e221cb1863288f8e4a;p=thirdparty%2Fkernel%2Fstable-queue.git scripts/bad_stable: allow multiple kernel versions at the same time This moves the command line options around, from: bad_stable KERNEL_VERSION GIT_ID to: bad_stable GIT_ID KERNEL_VERSION... where KERNEL_VERSION... is now able to be a list of kernel versions that the commit failed on. This should save us some typing... Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/bad_stable b/scripts/bad_stable index 1f8548b771a..ee49499017d 100755 --- a/scripts/bad_stable +++ b/scripts/bad_stable @@ -46,7 +46,7 @@ author() fi # if this is the start of the diff, then it's time to stop looking - diff=$(echo "$l" | grep "^---") + diff=$(echo "$l" | grep "^--- ") if [ x"$diff" != x ] then #echo "diffstart!!!!!" @@ -161,18 +161,20 @@ reply() ~/bin/msmtp-enqueue.sh -a coco $to } -STABLE_VERSION="$1" +git_id="$1" shift -if [ "${STABLE_VERSION}" == "" ] ; then - echo "Must provide kernel version to be told is bad\n" +if [ "${git_id}" == "" ] ; then + echo "bad_stable GIT_ID KERNEL_VERSION" + echo "Must provide kernel version to be told is bad" exit; fi -echo "STABLE_VERSION = ${STABLE_VERSION}" +echo "git_id = ${git_id}" -for git_id in $* +for STABLE_VERSION in $* do + echo "bad version = ${STABLE_VERSION}" TMPFILE=`mktemp bad_patch.XXXXX` || exit 1 git show --pretty=email $git_id > $TMPFILE reply $TMPFILE