]>
git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - scripts/added-to-stable
3 #. patchfns 2>/dev/null ||
4 #. /usr/lib/patch-scripts/patchfns 2>/dev/null ||
5 #. $PATCHSCRIPTS_LIBDIR/patchfns 2>/dev/null ||
7 # echo "Impossible to find my library 'patchfns'."
8 # echo "Check your install, or go to the right directory"
12 EMAIL_ADDRESS
='<gregkh@suse.de>'
14 STABLE
='<stable@kernel.org>'
22 a
=$
(echo "$l" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
26 if [ x
"$SMTP_SERVER" = x
]
28 SMTP_SERVER
=localhost
:25
31 if [ x
"$EMAIL_ADDRESS" = x
]
33 echo "You must set the EMAIL_ADDRESS environment variable to your email address"
53 # skip the Message-ID: line so we don't send email to the wrong place
55 reply
=$
(echo "$l" |
grep -i Message-ID
:)
61 # if this is the start of the diff, then it's time to stop looking
62 diff=$
(echo "$l" |
grep "^---")
71 a
=$
(echo "$x" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
74 if [ x
"$author" == x
]
84 author
=$
(echo $author |
tr ' ' '\n' |
grep -v "$first_author" |
86 author
="$first_author $author"
87 eval $1=$
(echo $author |
sed -e 's/ /,/g')
99 # patch_name=$(stripit $1)
100 # PATCH=$P/patches/$patch_name.patch
101 # TXT=$P/txt/$patch_name.txt
104 # echo $TXT is missing
108 SUBJECT
=`grep "Subject:" $PATCH`
109 # SUBJECT=$(head -n 2 $PATCH | tail -n 1)
110 MESSAGE_ID
=`grep -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
111 author AUTHOR
$1 FIRST_AUTHOR
112 echo author said
$AUTHOR
113 echo first_author said
$FIRST_AUTHOR
114 if [ x
"$AUTHOR" == "x" ]
116 echo nobody to notify
120 for i
in $
(echo $AUTHOR |
sed -e 's/,/ /g')
122 if ! echo "$TO" |
grep "$i"
132 echo makemail
-to $AUTHOR -from=$FROM -subject="patch $PATCH added to gregkh tree" -date="$(date -R)" -reply_to=$MESSAGE_ID
133 echo smtpsend
-server=$SMTP_SERVER $to -from=$FROM
138 echo -n "This is a note to let we have just queued up the "
143 echo "to the 2.6.18-stable tree. Its filename is"
147 echo "A git repo of this tree can be found at "
148 echo " http://www.kernel.org/git/?p=linux/kernel/git/gregkh/stable-queue.git;a=summary"
154 echo -n "Patches currently in stable-queue which might be from "
155 echo "$FIRST_AUTHOR are"
157 grep -lR $FIRST_AUTHOR /home
/greg
/linux
/stable
/stable-queue
/queue-2.6
.18/ 2> /dev
/null |
158 sed -e 's/\/home\/greg\/linux\/stable\/stable-queue\///'
160 makemail
-to $AUTHOR -from=$FROM -cc=$STABLE\
161 -subject="patch $PATCH queued to -stable tree" \
163 -reply_to="$MESSAGE_ID" | \
164 # talk to the suse network instead of localhost (due to the way suse.de now handles email...)
165 # smtpsend -server=$SMTP_SERVER $to -from=$FROM
172 echo "acknowledged $patch_file"
173 echo "-----------------------------------------------"