scripts: get_maintainers.pl: fixup for xserver tree

The script checks for certain files in the kernel tree, so it needs to
be fixed up for working with xserver tree.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-16 14:19:15 +01:00 committed by Enrico Weigelt
parent 861fc55e7c
commit 4184c31986

View File

@ -335,7 +335,7 @@ if ($email &&
if ($tree && !top_of_kernel_tree($lk_path)) { if ($tree && !top_of_kernel_tree($lk_path)) {
die "$P: The current directory does not appear to be " die "$P: The current directory does not appear to be "
. "a linux kernel source tree.\n"; . "a xserver source tree.\n";
} }
## Read MAINTAINERS for type/value pairs ## Read MAINTAINERS for type/value pairs
@ -1112,7 +1112,7 @@ Notes:
--git-min-signatures, --git-max-maintainers, --git-min-percent, and --git-min-signatures, --git-max-maintainers, --git-min-percent, and
--git-blame --git-blame
Use --hg-since not --git-since to control date selection Use --hg-since not --git-since to control date selection
File ".get_maintainer.conf", if it exists in the linux kernel source root File ".get_maintainer.conf", if it exists in the xserver source root
directory, can change whatever get_maintainer defaults are desired. directory, can change whatever get_maintainer defaults are desired.
Entries in this file can be any command line argument. Entries in this file can be any command line argument.
This file is prepended to any additional command line arguments. This file is prepended to any additional command line arguments.
@ -1130,21 +1130,18 @@ sub top_of_kernel_tree {
$lk_path .= "/"; $lk_path .= "/";
} }
if ( (-f "${lk_path}COPYING") if ( (-f "${lk_path}COPYING")
&& (-f "${lk_path}CREDITS") && (-f "${lk_path}MAINTAINERS")
&& (-f "${lk_path}Kbuild") && (-f "${lk_path}meson.build")
&& (-e "${lk_path}MAINTAINERS") && (-f "${lk_path}README.md")
&& (-f "${lk_path}Makefile") && (-d "${lk_path}dix")
&& (-f "${lk_path}README") && (-d "${lk_path}exa")
&& (-d "${lk_path}Documentation") && (-d "${lk_path}glamor")
&& (-d "${lk_path}arch") && (-d "${lk_path}hw")
&& (-d "${lk_path}include") && (-d "${lk_path}os")
&& (-d "${lk_path}drivers") && (-d "${lk_path}present")
&& (-d "${lk_path}fs") && (-d "${lk_path}pseudoramiX")
&& (-d "${lk_path}init") && (-d "${lk_path}randr")
&& (-d "${lk_path}ipc") && (-d "${lk_path}record")) {
&& (-d "${lk_path}kernel")
&& (-d "${lk_path}lib")
&& (-d "${lk_path}scripts")) {
return 1; return 1;
} }
return 0; return 0;