From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E96EEA0C57; Mon, 1 Nov 2021 14:35:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B241C40E28; Mon, 1 Nov 2021 14:35:39 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 94AA140DF6 for ; Mon, 1 Nov 2021 14:35:38 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10154"; a="218203148" X-IronPort-AV: E=Sophos;i="5.87,199,1631602800"; d="scan'208";a="218203148" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 06:35:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,199,1631602800"; d="scan'208";a="727361388" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.27]) by fmsmga006.fm.intel.com with ESMTP; 01 Nov 2021 06:35:35 -0700 From: Ferruh Yigit To: Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org, antonio.ninodiaz@arm.com Date: Mon, 1 Nov 2021 13:35:32 +0000 Message-Id: <20211101133533.3402007-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] devtools: remove ugly workaround from get maintainers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Linux kernel 'get_maintainer.pl' script supports running out of Linux tree since commit 31bb82c9caa9 ("get_maintainer: allow usage outside of kernel tree") As commit is a few years old now, integrating it to DPDK and removing ugly workaround for it. Signed-off-by: Ferruh Yigit --- Cc: antonio.ninodiaz@arm.com --- devtools/get-maintainer.sh | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/devtools/get-maintainer.sh b/devtools/get-maintainer.sh index 85740f5afd2a..bba4d3f68db8 100755 --- a/devtools/get-maintainer.sh +++ b/devtools/get-maintainer.sh @@ -7,7 +7,7 @@ # - DPDK_GETMAINTAINER_PATH . $(dirname $(readlink -f $0))/load-devel-config -options="--no-git-fallback" +options="--no-tree --no-git-fallback" options="$options --no-rolestats" print_usage () { @@ -31,28 +31,4 @@ if [ ! -f "$DPDK_GETMAINTAINER_PATH" ] || exit 1 fi -FILES="COPYING CREDITS Kbuild" -FOLDERS="Documentation arch include fs init ipc scripts" - -# Kernel script checks for some files and folders to run -workaround () { - for f in $FILES; do - if [ ! -f $f ]; then touch $f; fi - done - - for d in $FOLDERS; do - if [ ! -d $d ]; then mkdir $d; fi - done -} - -fix_workaround () { - for f in $FILES; do if [ -f $f ]; then rm -f $f; fi; done - for d in $FOLDERS; do if [ -d $d ]; then rmdir $d; fi; done -} - -# clean workaround on exit -trap fix_workaround EXIT - -workaround $DPDK_GETMAINTAINER_PATH $options $@ -# fix_workaround called on exit by trap -- 2.31.1