]> git.droids-corp.org - dpdk.git/commitdiff
devtools: remove ugly workaround from get maintainer
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 1 Nov 2021 13:35:32 +0000 (13:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 13 Jan 2022 11:32:44 +0000 (12:32 +0100)
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 <ferruh.yigit@intel.com>
devtools/get-maintainer.sh

index 85740f5afd2af1ca67187c7d233721decca902e3..bba4d3f68db8de840963c92b675e9cf356260fb1 100755 (executable)
@@ -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