… | |
… | |
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.02'; |
20 | our $VERSION = '1.03'; |
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 "<?xml version='1.0' encoding='utf-8'?>", |
47 | print "<?xml version='1.0' encoding='utf-8'?>", |
48 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">", |
48 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">", |
49 | "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>", |
49 | "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>", |
50 | "<head>", |
50 | "<head>", |
51 | "<title>Crossfire Archetypes</title>", |
51 | "<title>Crossfire Archetypes</title>", |
52 | "<style type='text/css'>\n", |
52 | "<link rel='stylesheet' type='text/css' media='all' href='/common.css'/>", |
53 | "body { background: white; text-color: black; }\n", |
|
|
54 | "a { text-color: blue; }\n", |
|
|
55 | "a:hover { text-color: red; }\n", |
|
|
56 | "a:visited { text-color: #008; }\n", |
|
|
57 | |
|
|
58 | "li { white-space: pre; }\n", |
|
|
59 | "p.m { white-space: pre; margin-left: 2em; background: #ddd; padding: 2px; border: 1px solid black; }\n", |
|
|
60 | "\n</style>", |
|
|
61 | "</head>", |
53 | "</head>", |
62 | "<body>", |
54 | "<body>", |
63 | "<h1>Crossfire Archetypes</h1>"; |
55 | "<h1>Crossfire Archetypes</h1>"; |
64 | |
56 | |
65 | print "<table>"; |
57 | print "<table>"; |
… | |
… | |
90 | print "<tr valign='top'><th align='left'><a id='", (lc $name), "'>$name</a></th><td>"; |
82 | print "<tr valign='top'><th align='left'><a id='", (lc $name), "'>$name</a></th><td>"; |
91 | print_arch $arch->{$name}; |
83 | print_arch $arch->{$name}; |
92 | print "</td></tr>"; |
84 | print "</td></tr>"; |
93 | } |
85 | } |
94 | |
86 | |
95 | print "</table><hr/><p style='font-size: 8pt'>created by <a href='http://software.schmorp.de/#crossfire'>cfarch2html</a> version $VERSION</p>", |
87 | print "</table><p class='footer'>created by <a href='http://software.schmorp.de/#crossfire'>cfarch2html</a> version $VERSION</p>", |
96 | "</body></html>"; |
88 | "</body></html>"; |
97 | |
89 | |
98 | close $fh; |
90 | close $fh; |
99 | |
91 | |
100 | system "gzip", "-7f", "arc.xhtml"; |
92 | system "gzip", "-7f", "arc.xhtml"; |