xref: /dpdk/devtools/get-maintainer.sh (revision 6f716880ee53ac1e50c9c75dc749886e3257bb8f)
17a629106SFerruh Yigit#!/bin/sh
29d7c01f8SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
39d7c01f8SBruce Richardson# Copyright(c) 2017 Intel Corporation
47a629106SFerruh Yigit
57a629106SFerruh Yigit
67a629106SFerruh Yigit# Load config options:
77a629106SFerruh Yigit# - DPDK_GETMAINTAINER_PATH
84a4a20c4SOlivier Matz. $(dirname $(readlink -f $0))/load-devel-config
97a629106SFerruh Yigit
10*6f716880SFerruh Yigitoptions="--no-tree --no-git-fallback"
117a629106SFerruh Yigitoptions="$options --no-rolestats"
127a629106SFerruh Yigit
137a629106SFerruh Yigitprint_usage () {
147a629106SFerruh Yigit	cat <<- END_OF_HELP
157a629106SFerruh Yigit	usage: $(basename $0) <patch>
162ba9a32cSOlivier Matz
172ba9a32cSOlivier Matz	The DPDK_GETMAINTAINER_PATH variable should be set to the full path to
182ba9a32cSOlivier Matz	the get_maintainer.pl script located in Linux kernel sources. Example:
192ba9a32cSOlivier Matz	DPDK_GETMAINTAINER_PATH=~/linux/scripts/get_maintainer.pl
202ba9a32cSOlivier Matz
212ba9a32cSOlivier Matz	Also refer to devtools/load-devel-config to store your configuration.
227a629106SFerruh Yigit	END_OF_HELP
237a629106SFerruh Yigit}
247a629106SFerruh Yigit
252ba9a32cSOlivier Matz# Requires DPDK_GETMAINTAINER_PATH devel config option set
26515e92ebSJuhamatti Kuusisaariif [ ! -f "$DPDK_GETMAINTAINER_PATH" ] ||
27515e92ebSJuhamatti Kuusisaari   [ ! -x "$DPDK_GETMAINTAINER_PATH" ] ; then
287a629106SFerruh Yigit	print_usage >&2
297a629106SFerruh Yigit	echo
307a629106SFerruh Yigit	echo 'Cannot execute DPDK_GETMAINTAINER_PATH' >&2
317a629106SFerruh Yigit	exit 1
327a629106SFerruh Yigitfi
337a629106SFerruh Yigit
347a629106SFerruh Yigit$DPDK_GETMAINTAINER_PATH $options $@
35