]>
git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - scripts/added-to-stable
429a513232ac72db8d199c94e9ca24768e2f5204
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 KERNEL_MINOR_VERSION
='22'
13 KERNEL
="2.6.$KERNEL_MINOR_VERSION"
15 EMAIL_ADDRESS
='<gregkh@suse.de>'
17 STABLE
='<stable@kernel.org>'
18 STABLE_COMMITS
='<stable-commits@vger.kernel.org>'
26 a
=$
(echo "$l" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
30 if [ x
"$SMTP_SERVER" = x
]
32 SMTP_SERVER
=localhost
:25
35 if [ x
"$EMAIL_ADDRESS" = x
]
37 echo "You must set the EMAIL_ADDRESS environment variable to your email address"
57 # skip the Message-ID: line so we don't send email to the wrong place
59 reply
=$
(echo "$l" |
grep -i Message-ID
:)
65 # if this is the start of the diff, then it's time to stop looking
66 diff=$
(echo "$l" |
grep "^---")
75 a
=$
(echo "$x" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
78 if [ x
"$author" == x
]
88 author
=$
(echo $author |
tr ' ' '\n' |
grep -v "$first_author" |
90 author
="$first_author $author"
91 eval $1=$
(echo $author |
sed -e 's/ /,/g')
103 # patch_name=$(stripit $1)
104 # PATCH=$P/patches/$patch_name.patch
105 # TXT=$P/txt/$patch_name.txt
108 # echo $TXT is missing
112 SUBJECT
=`grep "Subject:" $PATCH`
113 # SUBJECT=$(head -n 2 $PATCH | tail -n 1)
114 MESSAGE_ID
=`grep -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
115 author AUTHOR
$1 FIRST_AUTHOR
116 echo author said
$AUTHOR
117 echo first_author said
$FIRST_AUTHOR
118 if [ x
"$AUTHOR" == "x" ]
120 echo nobody to notify
124 for i
in $
(echo $AUTHOR |
sed -e 's/,/ /g')
126 if ! echo "$TO" |
grep "$i"
136 echo makemail
-to $AUTHOR -from=$FROM -subject="patch $PATCH added to -stable tree" -date="$(date -R)" -reply_to=$MESSAGE_ID
137 echo smtpsend
-server=$SMTP_SERVER $to -from=$FROM
142 echo -n "This is a note to let you know that we have just queued up the "
147 echo "to the "$KERNEL"-stable tree. Its filename is"
151 echo "A git repo of this tree can be found at "
152 echo " http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary"
158 echo -n "Patches currently in stable-queue which might be from "
159 echo "$FIRST_AUTHOR are"
161 grep -lR $FIRST_AUTHOR /home
/gregkh
/linux
/stable
/stable-queue
/queue-
$KERNEL/ 2> /dev
/null |
162 sed -e 's/\/home\/gregkh\/linux\/stable\/stable-queue\///'
164 makemail
-to $AUTHOR -from=$FROM -cc="$STABLE, $STABLE_COMMITS" \
165 -subject="patch $PATCH queued to -stable tree" \
167 -reply_to="$MESSAGE_ID" | \
168 # talk to the suse network instead of localhost (due to the way suse.de now handles email...)
169 # smtpsend -server=$SMTP_SERVER $to -from=$FROM
176 echo "acknowledged $patch_file"
177 echo "-----------------------------------------------"