From ccd583c906efb7ca728cf076c90b7036557dc5a0 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2015 21:07:57 +0200 Subject: [PATCH] scripts/quilt-mail: add support for 4.0 --- scripts/quilt-mail | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/quilt-mail b/scripts/quilt-mail index 0257bb788a1..8d9254b09e2 100755 --- a/scripts/quilt-mail +++ b/scripts/quilt-mail @@ -20,6 +20,11 @@ BASE_VERSION=${FULL_VERSION/-rc?/} VERSION=`basename \`pwd\`` ROOT_VERSION=${VERSION/\.y/} ROOT_VERSION=${ROOT_VERSION/linux-/} + +REL_ARRAY=(${FULL_VERSION//./ }) +MAJOR=${REL_ARRAY[0]} +VER="${MAJOR}.0" + DATE=`date -u --date="2 days"` if [ ${FULL_VERSION} == ${BASE_VERSION} ] ; then @@ -79,7 +84,7 @@ echo "Responses should be made by ${DATE}." echo "Anything received after that time might be too late." echo "" echo "The whole patch series can be found in one patch at:" -echo " kernel.org/pub/linux/kernel/v3.0/stable-review/patch-${FULL_VERSION}.gz" +echo " kernel.org/pub/linux/kernel/v${VER}/stable-review/patch-${FULL_VERSION}.gz" echo "and the diffstat can be found below." echo "" echo "thanks," @@ -139,7 +144,7 @@ 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=gregkh@geb.kernel.org put patch-${FULL_VERSION} patch-${FULL_VERSION}.asc /pub/linux/kernel/v3.0/stable-review/patch-${FULL_VERSION}.gz" >> ${TMP_DIR}/send_it_off +echo "kup --host=gregkh@geb.kernel.org 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 chmod 755 ${TMP_DIR}/send_it_off -- 2.47.2