use 5.014;
use warnings;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
use File::stat;
use Time::Piece;
my @pages = (
[qw( index )],
- [qw( vi digraphs charset browser writing sc/2 termcol )],
+ [qw( vi digraphs charset browser writing sc/lotv termcol dieren )],
[qw( readline latin unicode countries emoji perl )],
- [qw( vimperator mutt nethack mplayer font )],
- [qw( apl less screen brahmi digits sc termcol/legacy )],
- [qw( chars/table/html source )],
+ [qw( vimperator mutt nethack mplayer font codec )],
+ [qw( apl less screen digits sc/bw sc/hots termcol/legacy keyboard )],
+ [qw( chars/table/html sample source plan )],
);
my %freq = (
(my $page = $file) =~ s/\Aindex\z//;
$file =~ s{/.*}{};
$file .= '.plp';
+ my $stat = stat $file or do {
+ warn "missing file $file\n";
+ next;
+ };
+
print '<url>';
print "<loc>http://sheet.shiar.nl/$page</loc>";
printf '<changefreq>%s</changefreq>', $freq{$page} // 'monthly';
printf '<priority>%.2f</priority>', $prio;
- printf '<lastmod>%s</lastmod>', localtime(stat($file)->mtime)->date;
+ printf '<lastmod>%s</lastmod>', localtime($stat->mtime)->date;
say '</url>';
}
$prio -= .1;