… | |
… | |
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.05'; |
|
|
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 | |
26 | |
25 | my $T = 32; |
27 | my $T = 32; |
26 | |
28 | |
27 | my $arch; |
29 | my $arch; |
28 | |
30 | |
29 | umask 022; |
31 | umask 022; |
30 | |
|
|
31 | our $VERSION = '1.04'; |
|
|
32 | |
32 | |
33 | sub escape_html($) { |
33 | sub escape_html($) { |
34 | local $_ = shift; |
34 | local $_ = shift; |
35 | s/([<>&])/sprintf "&#%d;", ord $1/ge; |
35 | s/([<>&])/sprintf "&#%d;", ord $1/ge; |
36 | $_ |
36 | $_ |
… | |
… | |
183 | print "</tr>"; |
183 | print "</tr>"; |
184 | } |
184 | } |
185 | |
185 | |
186 | my $W2 = $W + 600; |
186 | my $W2 = $W + 600; |
187 | |
187 | |
188 | print "</table><hr/><p style='font-size: 8pt'>created by <b>cfmap2html</b> version $VERSION</p>", |
188 | print "</table><hr/><p style='font-size: 8pt'>created by <a href='http://software.schmorp.de/#crossfire'>cfmap2html</a> version $VERSION</p>", |
189 | "<p style='width: ${W2}px; height: 600px;'/></body></html>"; |
189 | "<p style='width: ${W2}px; height: 600px;'/></body></html>"; |
190 | |
190 | |
191 | close $fh; |
191 | close $fh; |
192 | |
192 | |
193 | system "gzip", "-7f", "$path.html"; |
193 | system "gzip", "-7f", "$path.html"; |