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

Comparing cfmaps/cfmap2html (file contents):
Revision 1.9 by root, Sun Nov 20 00:58:57 2005 UTC vs.
Revision 1.10 by root, Sun Nov 20 01:05:34 2005 UTC

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
20our $VERSION = '1.05';
21
20use Storable; 22use Storable;
21 23
22my $LIBDIR = $ENV{CROSSFIRE_LIBDIR} 24my $LIBDIR = $ENV{CROSSFIRE_LIBDIR}
23 or die "\$CROSSFIRE_LIBDIR must be set\n"; 25 or die "\$CROSSFIRE_LIBDIR must be set\n";
24 26
25my $T = 32; 27my $T = 32;
26 28
27my $arch; 29my $arch;
28 30
29umask 022; 31umask 022;
30
31our $VERSION = '1.04';
32 32
33sub escape_html($) { 33sub 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";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines