]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
make it easier to specify the version number for added-to-stable script
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Dec 2007 04:56:19 +0000 (20:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Dec 2007 04:56:19 +0000 (20:56 -0800)
scripts/added-to-stable

index a796ecaac069217d0eab419bd849e049a78f7b26..429a513232ac72db8d199c94e9ca24768e2f5204 100755 (executable)
@@ -9,9 +9,13 @@
 #      exit 1
 #}
 
+KERNEL_MINOR_VERSION='22'
+KERNEL="2.6.$KERNEL_MINOR_VERSION"
+
 EMAIL_ADDRESS='<gregkh@suse.de>'
 
 STABLE='<stable@kernel.org>'
+STABLE_COMMITS='<stable-commits@vger.kernel.org>'
 
 extract_addr()
 {
@@ -129,7 +133,7 @@ reply()
                cc="-cc $cc"
        fi
 
-       echo makemail -to $AUTHOR -from=$FROM -subject="patch $PATCH added to stable tree" -date="$(date -R)" -reply_to=$MESSAGE_ID
+       echo makemail -to $AUTHOR -from=$FROM -subject="patch $PATCH added to -stable tree" -date="$(date -R)" -reply_to=$MESSAGE_ID
        echo smtpsend -server=$SMTP_SERVER $to -from=$FROM
 
 
@@ -140,7 +144,7 @@ reply()
                echo
                echo "    " $SUBJECT
                echo
-               echo "to the 2.6.18-stable tree.  Its filename is"
+               echo "to the "$KERNEL"-stable tree.  Its filename is"
                echo
                echo "    " $PATCH
                echo
@@ -154,10 +158,10 @@ reply()
                echo -n "Patches currently in stable-queue which might be from "
                echo "$FIRST_AUTHOR are"
                echo
-               grep -lR $FIRST_AUTHOR /home/greg/linux/stable/stable-queue/queue-2.6.18/ 2> /dev/null |
-                       sed -e 's/\/home\/greg\/linux\/stable\/stable-queue\///'
+               grep -lR $FIRST_AUTHOR /home/gregkh/linux/stable/stable-queue/queue-$KERNEL/ 2> /dev/null |
+                       sed -e 's/\/home\/gregkh\/linux\/stable\/stable-queue\///'
        ) |
-       makemail -to $AUTHOR -from=$FROM -cc=$STABLE\
+       makemail -to $AUTHOR -from=$FROM -cc="$STABLE, $STABLE_COMMITS"  \
                -subject="patch $PATCH queued to -stable tree" \
                -date="$(date -R)" \
                -reply_to="$MESSAGE_ID" | \