]>
git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - scripts/added-to-stable
3 KERNEL_MINOR_VERSION
='34'
4 KERNEL
="2.6.$KERNEL_MINOR_VERSION"
6 EMAIL_ADDRESS
='<gregkh@linuxfoundation.org>'
8 STABLE
='<stable@vger.kernel.org>'
9 STABLE_COMMITS
='<stable-commits@vger.kernel.org>'
17 a
=$
(echo "$l" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
21 if [ x
"$SMTP_SERVER" = x
]
23 SMTP_SERVER
=localhost
:25
26 if [ x
"$EMAIL_ADDRESS" = x
]
28 echo "You must set the EMAIL_ADDRESS environment variable to your email address"
42 echo "$TXT is missing"
48 # skip the Message-ID: line so we don't send email to the wrong place
50 reply
=$
(echo "$l" |
grep -a -i Message-ID
:)
56 # if this is the start of the diff, then it's time to stop looking
57 diff=$
(echo "$l" |
grep "^---")
66 a
=$
(echo "$x" |
sed -n -e 's/.*<\(.*@[^>]*\).*/\1/p')
69 if [ x
"$author" == x
]
79 author
=$
(echo "$author" |
tr ' ' '\n' |
grep -v "$first_author" |
81 author
="$first_author $author"
82 eval $1=$
(echo $author |
sed -e 's/ /,/g')
94 # patch_name=$(stripit $1)
95 # PATCH=$P/patches/$patch_name.patch
96 # TXT=$P/txt/$patch_name.txt
99 # echo $TXT is missing
103 # SUBJECT=`grep -a "Subject:" $PATCH`
104 SUBJECT
=`grep -a "Subject:" $PATCH | sed s/Subject\:\ //`
105 # SUBJECT=$(head -n 2 $PATCH | tail -n 1)
106 MESSAGE_ID
=`grep -a -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
107 author AUTHOR
$1 FIRST_AUTHOR
108 echo "author said $AUTHOR"
109 echo "first_author said $FIRST_AUTHOR"
110 if [ x
"$AUTHOR" == "x" ]
112 echo "nobody to notify"
116 for i
in $
(echo "$AUTHOR" |
sed -e 's/,/ /g')
118 if ! echo "$TO" |
grep "$i"
128 # SUBJECT="patch $PATCH added to $KERNEL-stable tree"
130 CHARSET
=$
(guess-charset
"$PATCH")
131 if test "x$CHARSET" = "ANSI_X3.4-1968"; then
134 CHARCMD
="-charset=$CHARSET"
139 echo "makemail -to $AUTHOR -from=$FROM -subject=\"$SUBJECT\" -date=\"$(date -R)\" -reply_to=$MESSAGE_ID --message=$ID $CHARCMD"
140 # echo "smtpsend -server=$SMTP_SERVER $to -from=$FROM"
145 echo "This is a note to let you know that I've just added the patch titled"
149 echo "to the $KERNEL-stable tree which can be found at:"
150 echo " https://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary"
152 echo "The filename of the patch is:"
153 echo " " `basename "$PATCH"`
154 echo "and it can be found in the queue-$KERNEL subdirectory."
156 echo "If you, or anyone else, feels it should not be added to the stable tree,"
157 echo "please let <stable@vger.kernel.org> know about it."
163 echo -n "Patches currently in stable-queue which might be from "
164 echo "$FIRST_AUTHOR are"
166 grep -lR $FIRST_AUTHOR /home
/gregkh
/linux
/stable
/stable-queue
/queue-
$KERNEL/ 2> /dev
/null |
167 sed -e 's/\/home\/gregkh\/linux\/stable\/stable-queue\///'
169 makemail
-to "$AUTHOR" \
171 -cc="$STABLE, $STABLE_COMMITS" \
172 -subject="Patch \"$SUBJECT\" has been added to the $KERNEL-stable tree" \
174 -reply_to="$MESSAGE_ID" \
178 ~
/bin
/msmtp-enqueue.sh
"$to"
179 # ~/bin/msmtp-enqueue.sh -a coco "$to"
186 echo "acknowledged $patch_file"
187 echo "-----------------------------------------------"