Skip to content

Commit

Permalink
MOVEDlint: check for flavored version of a port
Browse files Browse the repository at this point in the history
There is no need to document when a port has been flavored or new
flavor has been added, check if someone added such a line, and prevent
the person it is not needed
  • Loading branch information
bapt committed Aug 23, 2022
1 parent 5ff97cc commit d134905
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tools/scripts/MOVEDlint.awk
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
# No else because the port is there but does not have the flavor,
# so it should be ok.
} else {
printf "%5d: %s must be marked as resurrected\n", NR, $1 | sort
if ($2 ~ $1 "@") {
printf "%5d: %s is a flavor of %s, the line should be removed\n", NR, $2, $1 | sort
} else {
printf "%5d: %s must be marked as resurrected\n", NR, $1 | sort
}
}
}

Expand Down

0 comments on commit d134905

Please sign in to comment.