+for (qw[copydatabase(1) xapian-compact(1)]) {
+ my ($n) = (/([\w\-\.]+)/);
+ $xurls{$_} = ".$n.1.html"
+}
+
+for (qw[make(1) flock(2) setrlimit(2) vfork(2) tmpfs(5)]) {
+ my ($n, $s) = (/([\w\-]+)\((\d)\)/);
+ $xurls{$_} = "http://www.man7.org/linux/man-pages/man$s/$n.$s.html";
+}
+
+for (qw[git(1)
+ git-am(1)
+ git-apply(1)
+ git-config(1)
+ git-credential(1)
+ git-daemon(1)
+ git-fast-import(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"
+}
+
+for (qw[
+ sd_listen_fds(3)
+ systemd(1)
+ systemd.unit(5)
+ systemd.socket(5)
+]) {
+ my ($n) = (/([\w\-\.]+)/);
+ $xurls{$_} = "https://www.freedesktop.org/software/systemd/man/$n.html";
+}
+
+$xurls{'netrc(5)'} = 'https://manpages.debian.org/stable/ftp/netrc.5.en.html';
+$xurls{'mbsync(1)'} =
+ 'https://manpages.debian.org/stable/isync/mbsync.1.en.html';
+$xurls{'offlineimap(1)'} =
+ 'https://manpages.debian.org/stable/offlineimap/offlineimap.1.en.html';
+$xurls{'spamc(1)'} =
+ 'https://spamassassin.apache.org/full/3.4.x/doc/spamc.html';
+$xurls{'grok-pull'} =
+ 'https://git.kernel.org/pub/scm/utils/grokmirror/grokmirror.git' .
+ '/tree/man/grok-pull.1.rst';
+$xurls{'git-filter-repo(1)'} = 'https://github.com/newren/git-filter-repo'.
+ '/blob/master/Documentation/git-filter-repo.txt';
+$xurls{'ssoma(1)'} = 'https://ssoma.public-inbox.org/ssoma.txt';
+$xurls{'cgitrc(5)'} = 'https://git.zx2c4.com/cgit/tree/cgitrc.5.txt';
+$xurls{'prove(1)'} = 'https://perldoc.perl.org/prove.html';
+$xurls{'mbox(5)'} = 'https://manpages.debian.org/stable/mutt/mbox.5.en.html';
+
+my $str = do { local $/; <STDIN> };