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

Comparing cfmaps/cfmap2html (file contents):
Revision 1.24 by root, Wed Feb 14 02:51:42 2007 UTC vs.
Revision 1.26 by root, Wed Feb 14 03:00:33 2007 UTC

12# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details. 14# GNU General Public License for more details.
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 cfmaps; 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.212'; 20our $VERSION = '1.212';
21 21
22use Storable; 22use Storable;
50 if (!-e "$base.xhtml" 50 if (!-e "$base.xhtml"
51 || -M "$base.xhtml" > -M "$base.pst") { 51 || -M "$base.xhtml" > -M "$base.pst") {
52 $arch ||= Storable::retrieve "$LIBDIR/archetypes.pst"; 52 $arch ||= Storable::retrieve "$LIBDIR/archetypes.pst";
53 my $meta = Storable::retrieve "$base.pst"; 53 my $meta = Storable::retrieve "$base.pst";
54 54
55 open my $fh, ">:utf8", "$path.xhtml" 55 open my $fh, ">:utf8", "$base.xhtml"
56 or die "$path.xhtml: $!"; 56 or die "$base.xhtml: $!";
57 57
58 select $fh; 58 select $fh;
59 59
60 my $W = $meta->{width} * $T; 60 my $W = $meta->{width} * $T;
61 my $H = $meta->{height} * $T; 61 my $H = $meta->{height} * $T;
62 62
63 my $W2 = $W + 600; 63 my $W2 = $W + 600;
64 64
65 my (@path) = split /\//, $path; 65 my (@path) = split /\//, $base;
66 66
67 print "<?xml version='1.0' encoding='utf-8'?>", 67 print "<?xml version='1.0' encoding='utf-8'?>",
68 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 68 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
69 "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>", 69 "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>",
70 "<head>", 70 "<head>",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines