+my %xurls;
+for (qw[public-inbox.cgi(1)
+ public-inbox-compact(1)
+ public-inbox-config(5)
+ public-inbox-convert(1)
+ public-inbox-daemon(8)
+ public-inbox-edit(1)
+ public-inbox-httpd(1)
+ public-inbox-index(1)
+ public-inbox-init(1)
+ public-inbox-learn(1)
+ public-inbox-mda(1)
+ public-inbox-nntpd(1)
+ public-inbox-overview(7)
+ public-inbox-purge(1)
+ public-inbox-v1-format(5)
+ public-inbox-v2-format(5)
+ public-inbox-watch(1)
+ public-inbox-xcpdb(1)
+]) {
+ my ($n) = (/([\w\-\.]+)/);
+ $xurls{$_} = "$n.html";
+ $xurls{$n} = "$n.html";
+}
+
+for (qw[copydatabase(1) xapian-compact(1)]) {
+ my ($n) = (/([\w\-\.]+)/);
+ $xurls{$_} = ".$n.1.html"
+}
+
+for (qw[flock(2) setrlimit(2) vfork(2)]) {
+ my ($n, $s) = (/([\w\-]+)\((\d)\)/);
+ $xurls{$_} = "http://www.man7.org/linux/man-pages/man2/$n.$s.html";
+}
+
+for (qw[git(1)
+ git-am(1)
+ git-config(1)
+ git-daemon(1)
+ git-fetch(1)
+ git-filter-branch(1)
+ git-format-patch(1)
+ git-gc(1)
+ git-http-backend(1)
+ git-imap-send(1)
+ git-init(1)
+ git-send-email(1)
+ gitrepository-layout(5)
+]) {
+ my ($n) = (/([\w\-\.]+)/);
+ $xurls{$_} = "https://kernel.org/pub/software/scm/git/docs/$n.html"
+}