[dpdk-stable] [scripts] 3-backport: use get-maintainer.sh to CC subtree maintainers
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Feb 11 14:59:20 CET 2021
From: Luca Boccassi <luca.boccassi at microsoft.com>
Signed-off-by: Luca Boccassi <luca.boccassi at microsoft.com>
---
3-request-backport | 8 +++++++-
README | 4 ++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/3-request-backport b/3-request-backport
index d123531..a1725e5 100755
--- a/3-request-backport
+++ b/3-request-backport
@@ -2,6 +2,8 @@
source ./lib.sh
+set -e
+
list=""
if [ $# -lt 1 ] && [ "$GIT_AM_PAUSE_ON_FAIL" = "yes" ]
then
@@ -13,7 +15,7 @@ then
for _file in $list
do
_sub=$(grep Subject $_file | cut -d\ -f3-)
- echo "$_applied" | grep -qF "$_sub" || (head -n1 $_file | awk '{print $2}' >> /tmp/.list-$$)
+ echo "$_applied" | grep -qF "$_sub" || (head -n1 $_file | awk -v _file=$_file '{print $2" "_file}' >> /tmp/.list-$$)
done
popd &>/dev/null
else
@@ -33,6 +35,10 @@ get_cc_list()
> $cc_list
while read commit patch; do
+ # Has to be used from git repository directory
+ pushd $STABLE_DIR &>/dev/null
+ $STABLE_DIR/devtools/get-maintainer.sh $patch >> $cc_list
+ popd &>/dev/null
$GIT show $commit | grep -h '^.*: .*<.*@.*\..*>' |
sed 's/[^:]*: //' >> $cc_list
done < $list
diff --git a/README b/README
index 6489379..cc5f6bf 100644
--- a/README
+++ b/README
@@ -120,6 +120,10 @@ should keep an accumulated list for the stable tree and send out this
request multiple times with the accumulated list of failed patches. This
list will also be used by "6-announce-release".
+The 'devtools/get-maintainer.sh' tool from the DPDK repository is used to
+compile the list of maintainers to CC for each patch. A configuration file
+needs to be set up first, see the script itself for instructions.
+
4-final-review
==============
--
2.29.2
More information about the stable
mailing list