]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
scripts/quilt-mail: add support for 4.0
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2015 19:07:57 +0000 (21:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2015 19:07:57 +0000 (21:07 +0200)
scripts/quilt-mail

index 0257bb788a1bc51aeef555e53dee6df533ea5f64..8d9254b09e2018ac2456d627f3f647c1ac9540ea 100755 (executable)
@@ -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