shithub: mc

Download patch

ref: 422ae1fdf693890b14d9e0c40298065c1342a0ec
parent: 6c956603963fa9dce41cf9dc38a1ecbbff60bc94
author: Ori Bernstein <[email protected]>
date: Sat Nov 25 19:10:14 EST 2017

Find the last dot in the man name.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -246,7 +246,7 @@
 	for pg : mt.pages
 		p = std.pathcat(mt.dir, pg)
 		n = leaf(b.deps, p)
-		match std.strfind(pg, ".")
+		match std.strrfind(pg, ".")
 		| `std.None:	std.fatal("manpage {} missing section\n", pg)
 		| `std.Some i:	r = std.strcat(config.Manpath, pg[i + 1:])
 		;;