summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-11-26 00:10:14 -0800
committerOri Bernstein <ori@eigenstate.org>2017-11-26 00:10:14 -0800
commit422ae1fdf693890b14d9e0c40298065c1342a0ec (patch)
tree0b87ebed8da4c80f8431de0c076d37dd93e6a638
parent6c956603963fa9dce41cf9dc38a1ecbbff60bc94 (diff)
downloadmc-422ae1fdf693890b14d9e0c40298065c1342a0ec.tar.gz
Find the last dot in the man name.
-rw-r--r--mbld/deps.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 8bea55c..7c54e34 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -246,7 +246,7 @@ const mandeps = {b, name, mt
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:])
;;