From 6dd6cb63980307363d71c6963751b3f8e0c67fc8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 25 Sep 2021 14:04:05 +0200 Subject: [PATCH] scripts/quilt-mail: handle -rc1 different than other later -rc releases Signed-off-by: Greg Kroah-Hartman --- scripts/quilt-mail | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/quilt-mail b/scripts/quilt-mail index 6c7abeab07a..d3e842739f0 100755 --- a/scripts/quilt-mail +++ b/scripts/quilt-mail @@ -33,6 +33,9 @@ REL_ARRAY=(${FULL_VERSION//./ }) MAJOR=${REL_ARRAY[0]} VER="${MAJOR}.x" +RC_ARRAY=(${FULL_VERSION//-/ }) +RC=${RC_ARRAY[1]} + #DATE=`date -u --date="2 days"` DATE=`date -u --rfc-822 --date="2 days"` @@ -162,8 +165,15 @@ sed -i -e "s/Cc: stable@vger\.kernel\.org/Cc: torvalds@linux-foundation\.org, ak # Create a script to upload the patch to kernel.org and to send the patches out echo "#!/bin/bash" > ${TMP_DIR}/send_it_off echo "kup --host=git@gitolite.kernel.org --subcmd=kup-server put patch-${FULL_VERSION} patch-${FULL_VERSION}.asc /pub/linux/kernel/v${VER}/stable-review/patch-${FULL_VERSION}.gz" >> ${TMP_DIR}/send_it_off -echo "git send-email msg.*" >> ${TMP_DIR}/send_it_off -echo "#git send-email msg.000" >> ${TMP_DIR}/send_it_off + +if [ "${RC}" == "rc1" ] ; then + echo "git send-email msg.*" >> ${TMP_DIR}/send_it_off + echo "#git send-email msg.000" >> ${TMP_DIR}/send_it_off +else + echo "#git send-email msg.*" >> ${TMP_DIR}/send_it_off + echo "git send-email msg.000" >> ${TMP_DIR}/send_it_off +fi + chmod 755 ${TMP_DIR}/send_it_off -- 2.47.2