X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/1e896b32c218647ddfa2699c4c1ef0a9306f42cb..refs/heads/master:/tools/mksitemap diff --git a/tools/mksitemap b/tools/mksitemap index 12255b7..0b4a734 100755 --- a/tools/mksitemap +++ b/tools/mksitemap @@ -2,18 +2,29 @@ use 5.014; use warnings; -our $VERSION = '1.00'; +our $VERSION = '1.04'; use File::stat; use Time::Piece; my @pages = ( [qw( index )], - [qw( vi digraphs charset browser writing sc/2 termcol )], - [qw( readline latin unicode countries emoji perl )], - [qw( vimperator mutt nethack mplayer font )], - [qw( apl less screen digits sc termcol/legacy )], - [qw( chars/table/html source )], + [qw( vi digraphs charset browser writing sc/lotv termcol dieren )], + [qw( readline latin unicode countries emoji perl keyboard/altgr )], + [qw( + vimperator mutt nethack mplayer/mpv font codec + keyboard/altgr/windows keyboard/altgr/macos + dieren/uitgebreid dieren/beknopt + )], + [qw( + apl less screen digits sc/bw sc/hots termcol/legacy mplayer + digraphs/xorg + keyboard/altgr/macos-abc keyboard/altgr/msx keyboard/altgr/ukext + keyboard/altgr/eurkey keyboard/altgr/apl keyboard/altgr/spacecadet + keyboard/altgr/ipa keyboard/altgr/boyeg keyboard/altgr/drix + keyboard/altgr/symbolics keyboard/altgr/msx-graph + )], + [qw( chars/table/html sample source plan )], ); my %freq = ( @@ -31,15 +42,20 @@ for my $group (@pages) { state $prio = 1; for my $file (@{$group}) { (my $page = $file) =~ s/\Aindex\z//; - $file =~ s{/.*}{}; - $file .= '.plp'; + if (-e "$file.eng.inc.pl") { + $file .= '.eng.inc.pl'; + } + else { + $file =~ s{/.*}{}; + $file .= '.plp'; + } my $stat = stat $file or do { warn "missing file $file\n"; next; }; print ''; - print "http://sheet.shiar.nl/$page"; + print "https://sheet.shiar.nl/$page"; printf '%s', $freq{$page} // 'monthly'; printf '%.2f', $prio; printf '%s', localtime($stat->mtime)->date;