X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/12ed899f9f29468639a7a1462bd71fbe602d7510..e6b10645e7470208f5122055489c7a19733e50bc:/tools/mksitemap diff --git a/tools/mksitemap b/tools/mksitemap index abfd8d0..cbffc0b 100755 --- a/tools/mksitemap +++ b/tools/mksitemap @@ -2,7 +2,7 @@ use 5.014; use warnings; -our $VERSION = '1.02'; +our $VERSION = '1.03'; use File::stat; use Time::Piece; @@ -19,7 +19,8 @@ my @pages = ( [qw( apl less screen digits sc/bw sc/hots termcol/legacy mplayer keyboard/altgr/macos-abc keyboard/altgr/msx keyboard/altgr/ukext - keyboard/altgr/eurkey keyboard/altgr/apl + keyboard/altgr/eurkey keyboard/altgr/apl keyboard/altgr/spacecadet + keyboard/altgr/ipa )], [qw( chars/table/html sample source plan )], ); @@ -39,15 +40,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;