]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix Subject: in added-to-stable script
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Feb 2008 23:09:56 +0000 (15:09 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Feb 2008 23:09:56 +0000 (15:09 -0800)
scripts/added-to-stable

index 0ae222bc243a2f0d4084ba0dd5e5d3ea975944a6..02b5f7eb127ba907c1dbc0ad6cba81cc8514e09d 100755 (executable)
@@ -9,7 +9,7 @@
 #      exit 1
 #}
 
-KERNEL_MINOR_VERSION='24'
+KERNEL_MINOR_VERSION='23'
 KERNEL="2.6.$KERNEL_MINOR_VERSION"
 
 EMAIL_ADDRESS='<gregkh@suse.de>'
@@ -109,8 +109,8 @@ reply()
 #              exit 1
 #      fi
        echo "PATCH=$PATCH"
-       SUBJECT=`grep "Subject:" $PATCH`
-#      SUBJECT=$(head -n 2 $PATCH | tail -n 1)
+       TITLE=`grep "Subject:" $PATCH`
+#      TITLE=$(head -n 2 $PATCH | tail -n 1)
        MESSAGE_ID=`grep -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
        author AUTHOR $1 FIRST_AUTHOR
        echo author said $AUTHOR
@@ -133,7 +133,9 @@ reply()
                cc="-cc $cc"
        fi
 
-       echo makemail -to $AUTHOR -from=$FROM -subject="patch $PATCH added to $KERNEL-stable tree" -date="$(date -R)" -reply_to=$MESSAGE_ID
+       SUBJECT="patch $PATCH added to $KERNEL-stable tree"
+
+       echo makemail -to $AUTHOR -from=$FROM -subject="$SUBJECT" -date="$(date -R)" -reply_to=$MESSAGE_ID
        echo smtpsend -server=$SMTP_SERVER $to -from=$FROM
 
 
@@ -142,7 +144,7 @@ reply()
                echo -n "This is a note to let you know that we have just queued up the "
                echo "patch titled"
                echo
-               echo "    " $SUBJECT
+               echo "    " $TITLE
                echo
                echo "to the "$KERNEL"-stable tree.  Its filename is"
                echo
@@ -162,7 +164,7 @@ reply()
                        sed -e 's/\/home\/gregkh\/linux\/stable\/stable-queue\///'
        ) |
        makemail -to $AUTHOR -from=$FROM -cc="$STABLE, $STABLE_COMMITS"  \
-               -subject="patch $PATCH queued to -stable tree" \
+               -subject="$SUBJECT" \
                -date="$(date -R)" \
                -reply_to="$MESSAGE_ID" | \
        # talk to the suse network instead of localhost (due to the way suse.de now handles email...)