X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/584c356f502e31cb613b9a6d6b146806540f22ff..HEAD:/tools/mksitemap diff --git a/tools/mksitemap b/tools/mksitemap index 8d1dfb7..0b4a734 100755 --- a/tools/mksitemap +++ b/tools/mksitemap @@ -2,7 +2,7 @@ use 5.014; use warnings; -our $VERSION = '1.02'; +our $VERSION = '1.04'; use File::stat; use Time::Piece; @@ -18,8 +18,11 @@ my @pages = ( )], [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 )], ); @@ -39,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;