]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blobdiff - scripts/quilt-mail
add Alan back to the quilt-mail script
[thirdparty/kernel/stable-queue.git] / scripts / quilt-mail
index e95e6290c8328b6c5391aff54586bacab9c2f1de..eeb16f9845b80d2f21fa853708bd92702abdd703 100755 (executable)
@@ -1,6 +1,14 @@
 #!/bin/bash
 
-MBOX=$1
+SCRIPT_NAME=`basename ${0}`
+MBOX="$1"
+if [ "${MBOX}" == "" ] ; then
+       echo "ERROR, you must specify a mailbox name."
+       echo "usage:"
+       echo "    ${SCRIPT_NAME} mailbox_name"
+       exit
+fi
+
 FULL_VERSION=`ketchup -m`
 BASE_VERSION=${FULL_VERSION/-rc?/}
 DATE=`date -u --date="2 days"`
@@ -10,7 +18,12 @@ if [ ${FULL_VERSION} == ${BASE_VERSION} ] ; then
        exit
 fi
 
-echo "creating the mailbox for kernel release ${FULL_VERSION}"
+if [ ! -f "diffstat" ] ; then
+       echo "You forgot to create the 'diffstat' file, please do that first."
+       exit
+fi
+
+echo "Creating the mailbox for kernel release ${FULL_VERSION}"
 
 TMPFILE=`mktemp stable_header.XXXXXX` || exit 1
 NUM_PATCHES=`quilt series | wc -l`
@@ -19,8 +32,7 @@ NUM_PATCHES=`quilt series | wc -l`
 echo "This is the start of the stable review cycle for the ${BASE_VERSION} release."
 echo "There are ${NUM_PATCHES} patches in this series, all will be posted as a response"
 echo "to this one.  If anyone has any issues with these being applied, please"
-echo "let us know.  If anyone is a maintainer of the proper subsystem, and"
-echo "wants to add a Signed-off-by: line to the patch, please respond with it."
+echo "let me know."
 echo ""
 echo "Responses should be made by ${DATE}."
 echo "Anything received after that time might be too late."
@@ -34,12 +46,22 @@ echo ""
 echo "greg k-h"
 echo ""
 echo "-------------"
+echo "Shortlog of commits:"
+echo ""
+stable-shortlog
+echo ""
+echo "-------------"
+echo ""
+echo "Diffstat:"
+echo ""
+
 cat diffstat
 ) > ${TMPFILE}
 
 FROM="Greg KH <gregkh@linuxfoundation.org>"
 TO="linux-kernel@vger.kernel.org, stable@vger.kernel.org"
-CC="torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk"
+#CC="torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk"
+CC="alan@lxorguk.ukuu.org.uk"
 SUBJECT="${BASE_VERSION}-stable review"
 
 quilt mail --mbox ${MBOX}      \
@@ -51,5 +73,12 @@ quilt mail --mbox ${MBOX}    \
        --prefix ""             \
        --subject "${SUBJECT}"
 
+rm ${TMPFILE}
+echo "mbox is now in ${MBOX}"
+
+echo "Add:"
+echo "Cc: torvalds@linux-foundation.org, akpm@linux-foundation.org"
+echo "to the first email."
+
 #q mail --mbox x -m "$(cat ../stable-queue/00)" --sender gregkh@lf.org --from gregkh@lf.org --to foo@foo --subject "This is the subject"