ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cfmaps/cfmap2html
(Generate patch)

Comparing cfmaps/cfmap2html (file contents):
Revision 1.35 by root, Thu Oct 22 03:02:00 2009 UTC vs.
Revision 1.36 by root, Thu Oct 22 05:11:23 2009 UTC

46} 46}
47 47
48system "cfmap2png", @cfmap2png 48system "cfmap2png", @cfmap2png
49 if @cfmap2png; 49 if @cfmap2png;
50 50
51Deliantra::load_archetypes;
52
51for my $path (@ARGV) { 53for my $path (@ARGV) {
52 (my $base = $path) =~ s/\.map//; 54 (my $base = $path) =~ s/\.map//;
53 if (!-e "$base.xhtml" 55 if (!-e "$base.xhtml"
54 || -M "$base.xhtml" > -M "$base.map") { 56 || -M "$base.xhtml" > -M "$base.map") {
55 57
56 Deliantra::load_archetypes
57 unless %ARCH;
58
59 my $meta = read_arch "$base.map"; 58 my $meta = eval { read_arch "$base.map" }
59 or next;
60 my $arch = $meta->{arch}; 60 my $arch = $meta->{arch};
61 61
62 open my $fh, ">:utf8", "$base.xhtml" 62 open my $fh, ">:utf8", "$base.xhtml"
63 or die "$base.xhtml: $!"; 63 or die "$base.xhtml: $!";
64 64

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines