2017-08-04 15:01:25 +01:00
|
|
|
#!/bin/sh
|
2017-12-19 15:49:00 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
2017-08-04 15:01:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Load config options:
|
|
|
|
# - DPDK_GETMAINTAINER_PATH
|
2019-07-11 16:25:30 +02:00
|
|
|
. $(dirname $(readlink -f $0))/load-devel-config
|
2017-08-04 15:01:25 +01:00
|
|
|
|
2021-11-01 13:35:32 +00:00
|
|
|
options="--no-tree --no-git-fallback"
|
2017-08-04 15:01:25 +01:00
|
|
|
options="$options --no-rolestats"
|
|
|
|
|
|
|
|
print_usage () {
|
|
|
|
cat <<- END_OF_HELP
|
|
|
|
usage: $(basename $0) <patch>
|
2017-12-14 15:21:40 +01:00
|
|
|
|
|
|
|
The DPDK_GETMAINTAINER_PATH variable should be set to the full path to
|
|
|
|
the get_maintainer.pl script located in Linux kernel sources. Example:
|
|
|
|
DPDK_GETMAINTAINER_PATH=~/linux/scripts/get_maintainer.pl
|
|
|
|
|
|
|
|
Also refer to devtools/load-devel-config to store your configuration.
|
2017-08-04 15:01:25 +01:00
|
|
|
END_OF_HELP
|
|
|
|
}
|
|
|
|
|
2017-12-14 15:21:40 +01:00
|
|
|
# Requires DPDK_GETMAINTAINER_PATH devel config option set
|
2018-04-19 15:00:02 +03:00
|
|
|
if [ ! -f "$DPDK_GETMAINTAINER_PATH" ] ||
|
|
|
|
[ ! -x "$DPDK_GETMAINTAINER_PATH" ] ; then
|
2017-08-04 15:01:25 +01:00
|
|
|
print_usage >&2
|
|
|
|
echo
|
|
|
|
echo 'Cannot execute DPDK_GETMAINTAINER_PATH' >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
$DPDK_GETMAINTAINER_PATH $options $@
|