#!/usr/bin/perl use strict; use warnings; use autodie; use POSIX 'strftime'; chdir 'dl/dump'; my @pub = (glob('vndb-db-*'), glob('vndb-dev-*'), glob('vndb-votes-*'), glob('vndb-tags-*'), glob('vndb-traits-*')); open my $F, '>', 'index.html~'; print $F q{ VNDB Database Downloads

VNDB Database Downloads

Refer to the Database Dumps page on VNDB.org for more information about these files.

Latest versions

}; printf $F q{}, $_, $_, readlink for (grep -l, @pub); print $F q{
NameDestination
%s%s

Files

}; printf $F q{}, $_, $_, strftime('%F %T', gmtime((stat)[9])), -s for (grep !-l, @pub); print $F q{
NameLast modifiedSize
%s%s%d
}; close $F; rename 'index.html~', 'index.html';