devtools: rename variables in maintainers file parsing
Change variable names in the shell script. Replace whitelist with include_files and blacklist with exclude_files. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Luca Boccassi <bluca@debian.org> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: John McNamara <john.mcnamara@intel.com>
This commit is contained in:
parent
156055da95
commit
7ccf23c8f7
@ -42,10 +42,10 @@ parse_fx () # <index file>
|
||||
for line in $( (sed '/^-\+$/d' $1 ; echo) | sed 's,^$,§,') ; do
|
||||
if echo "$line" | grep -q '^§$' ; then
|
||||
# empty line delimit end of section
|
||||
whitelist=$(files $flines)
|
||||
blacklist=$(files $xlines)
|
||||
match=$(aminusb "$whitelist" "$blacklist")
|
||||
if [ -n "$whitelist" ] ; then
|
||||
include_files=$(files $flines)
|
||||
exclude_files=$(files $xlines)
|
||||
match=$(aminusb "$include_files" "$exclude_files")
|
||||
if [ -n "$include_files" ] ; then
|
||||
printf "# $title "
|
||||
maintainers=$(echo "$maintainers" | sed -r 's,.*<(.*)>.*,\1,')
|
||||
maintainers=$(printf "$maintainers" | sed -e 's,^,<,' -e 's,$,>,')
|
||||
|
Loading…
Reference in New Issue
Block a user