… | |
… | |
15 | # |
15 | # |
16 | # You should have received a copy of the GNU General Public License |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with gvpe; if not, write to the Free Software |
17 | # along with gvpe; if not, write to the Free Software |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 | |
19 | |
20 | our $VERSION = '1.04'; |
20 | our $VERSION = '1.051'; |
21 | |
21 | |
22 | use Storable; |
22 | use Storable; |
23 | |
23 | |
24 | my $LIBDIR = $ENV{CROSSFIRE_LIBDIR} |
24 | my $LIBDIR = $ENV{CROSSFIRE_LIBDIR} |
25 | or die "\$CROSSFIRE_LIBDIR must be set\n"; |
25 | or die "\$CROSSFIRE_LIBDIR must be set\n"; |
… | |
… | |
47 | print "<li>"; |
47 | print "<li>"; |
48 | if ($_ eq "more") { |
48 | if ($_ eq "more") { |
49 | print "more =>\n"; |
49 | print "more =>\n"; |
50 | print_arch ($a->{more}); |
50 | print_arch ($a->{more}); |
51 | } elsif ($_ eq "other_arch") { |
51 | } elsif ($_ eq "other_arch") { |
52 | print "$_ => <a href='#", (lc $a->{$_}), "'>$v</a>\n"; |
52 | print "$_ => <a href='#$a->{$_}'>$v</a>\n"; |
53 | } elsif ($_ eq "msg" || $_ eq "lore") { |
53 | } elsif ($_ eq "msg" || $_ eq "lore") { |
54 | print "$_ =><p class='m'>$v</p>"; |
54 | print "$_ =><p class='m'>$v</p>"; |
55 | } else { |
55 | } else { |
56 | print "$_ => $v\n"; |
56 | print "$_ => $v\n"; |
57 | } |
57 | } |
… | |
… | |
76 | "<body>", |
76 | "<body>", |
77 | "<h1>Crossfire Archetype '$name'</h1>"; |
77 | "<h1>Crossfire Archetype '$name'</h1>"; |
78 | |
78 | |
79 | print_arch $arch->{$name}; |
79 | print_arch $arch->{$name}; |
80 | |
80 | |
81 | print "<p class='footer'>created by <a href='http://software.schmorp.de/#crossfire'>cfarch2html</a> version $VERSION</p>", |
81 | print "<p class='footer'>created by <a href='http://software.schmorp.de/pkg/crossfire'>cfarch2html</a> version $VERSION</p>", |
82 | "</body></html>"; |
82 | "</body></html>"; |
83 | |
83 | |
84 | close $fh; |
84 | close $fh; |
85 | |
85 | |
86 | #system "gzip", "-7f", "arc.xhtml"; |
86 | #system "gzip", "-7f", "arc.xhtml"; |