… | |
… | |
24 | my $T = 50; |
24 | my $T = 50; |
25 | |
25 | |
26 | my @W = (100..129); |
26 | my @W = (100..129); |
27 | my @H = (100..129); |
27 | my @H = (100..129); |
28 | |
28 | |
|
|
29 | my $DIR = $ARGV[0] || "world"; |
|
|
30 | |
29 | open my $fh, ">:utf8", "world/index.xhtml" |
31 | open my $fh, ">:utf8", "$DIR/index.xhtml" |
30 | or die "index.xhtml: $!"; |
32 | or die "index.xhtml: $!"; |
31 | |
33 | |
32 | select $fh; |
34 | select $fh; |
33 | |
35 | |
34 | print "<?xml version='1.0' encoding='utf-8'?>", |
36 | print "<?xml version='1.0' encoding='utf-8'?>", |
… | |
… | |
50 | |
52 | |
51 | print "</table><p class='footer'>created by <a href='http://software.schmorp.de/pkg/crossfire'>cfworldmap</a> version $VERSION</p></body></html>"; |
53 | print "</table><p class='footer'>created by <a href='http://software.schmorp.de/pkg/crossfire'>cfworldmap</a> version $VERSION</p></body></html>"; |
52 | |
54 | |
53 | close $fh; |
55 | close $fh; |
54 | |
56 | |
55 | #system "gzip", "-7f", "world/index.xhtml"; |
57 | #system "gzip", "-7f", "$DIR/index.xhtml"; |
56 | |
58 | |