Skip to content

Commit

Permalink
doc: create alias man pages for large count routines
Browse files Browse the repository at this point in the history
We list the large count routines in the same man page of their normal
count routines, but the entries are missing. This commit creates the
alias man pages for them.
  • Loading branch information
hzhou committed Aug 26, 2024
1 parent 0ed853e commit ae7bba3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions maint/alias_mancnst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ while (<In>) {
}
}
close In;

# large count routines
open In, "grep '^int MPI\\w*_c\\>' man/man3/*.3 |" or die "Failed to grep for large count man pages\n";
while (<In>) {
# e.g. [man/man3/MPI_Recv.3:int MPI_Recv_c(void *buf, MPI_Count count, MPI_Datatype datatype, int source,]
if (/^man\/man3\/(MPI\w+)\.3:int (MPI\w+_c)\(/) {
open Out, "> man/man3/$2.3" or die "Can't create man/man3/$2.3\n";
print Out ".so man3/$1.3\n";
close Out;
}
}
close In;

0 comments on commit ae7bba3

Please sign in to comment.