gen.pl: error on duplicated See-Also fields

Updated http2.d accordingly.

Closes #10925
This commit is contained in:
Daniel Stenberg 2023-04-11 11:15:33 +02:00
parent 452b8e39ef
commit a8fbdb461c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 3 deletions

View file

@ -241,6 +241,10 @@ sub single {
$protocols=$1;
}
elsif(/^See-also: *(.*)/i) {
if($seealso) {
print STDERR "ERROR: duplicated See-also in $f\n";
return 1;
}
$seealso=$1;
}
elsif(/^Requires: *(.*)/i) {