… | |
… | |
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.01'; |
|
|
21 | |
20 | use Storable; |
22 | use Storable; |
21 | |
23 | |
22 | my $LIBDIR = $ENV{CROSSFIRE_LIBDIR} |
24 | my $LIBDIR = $ENV{CROSSFIRE_LIBDIR} |
23 | or die "\$CROSSFIRE_LIBDIR must be set\n"; |
25 | or die "\$CROSSFIRE_LIBDIR must be set\n"; |
24 | |
|
|
25 | our $VERSION = '1.0'; |
|
|
26 | |
26 | |
27 | my $arch; |
27 | my $arch; |
28 | |
28 | |
29 | sub escape_html($) { |
29 | sub escape_html($) { |
30 | local $_ = shift; |
30 | local $_ = shift; |
… | |
… | |
89 | print "<tr valign='top'><th align='left'><a name='", (lc $name), "'>$name</a></th><td>"; |
89 | print "<tr valign='top'><th align='left'><a name='", (lc $name), "'>$name</a></th><td>"; |
90 | print_arch $arch->{$name}; |
90 | print_arch $arch->{$name}; |
91 | print "</td></tr>"; |
91 | print "</td></tr>"; |
92 | } |
92 | } |
93 | |
93 | |
94 | print "</table><hr/><p style='font-size: 8pt'>created by <b>cfarch2html</b> version $VERSION</p>", |
94 | print "</table><hr/><p style='font-size: 8pt'>created by <a href='http://software.schmorp.de/#crossfire'>cfarch2html</a> version $VERSION</p>", |
95 | "</body></html>"; |
95 | "</body></html>"; |
96 | |
96 | |
97 | close $fh; |
97 | close $fh; |
98 | |
98 | |
99 | system "gzip", "-7f", "archetypes.html"; |
99 | system "gzip", "-7f", "archetypes.html"; |