From: Greg Kroah-Hartman Date: Thu, 13 Dec 2007 04:56:19 +0000 (-0800) Subject: make it easier to specify the version number for added-to-stable script X-Git-Tag: v2.6.23.10~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93e605696db029ee8b422ffccfb1cd65e7dd4809;p=thirdparty%2Fkernel%2Fstable-queue.git make it easier to specify the version number for added-to-stable script --- diff --git a/scripts/added-to-stable b/scripts/added-to-stable index a796ecaac06..429a513232a 100755 --- a/scripts/added-to-stable +++ b/scripts/added-to-stable @@ -9,9 +9,13 @@ # exit 1 #} +KERNEL_MINOR_VERSION='22' +KERNEL="2.6.$KERNEL_MINOR_VERSION" + EMAIL_ADDRESS='' STABLE='' +STABLE_COMMITS='' 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" | \