]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
scripts/quilt-mail: handle -rc1 different than other later -rc releases
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Sep 2021 12:04:05 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Sep 2021 12:04:05 +0000 (14:04 +0200)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/quilt-mail

index 6c7abeab07a9a3b7d69cd0367fe7da5297e60980..d3e842739f0c2a9d3b8dc0cc119f7adbdb9a778d 100755 (executable)
@@ -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