266
'base_url' => ("http://web-cpan.berlios.de/modules/" .
266
'base_url' => ("http://web-cpan.berlios.de/modules/" .
267
267
"HTML-Widgets-NavMenu/article/examples/simple/dest/"),
273
("", "me/", "personal.html", "me/contact-me/", "me/resumes/", "resume.html",
274
"resume_detailed.html", "humour/", "humour/TheEnemy/", "humour/TOWTF/",
275
"humour/Pope/", "humour.html", "humour/fortunes/", "MathVentures/",
276
"art/", "art/bk2hp/", "art/linux_banner/", "open-source/",
277
"open-source/projects/freecell-solver/", "jmikmod/", "rwlock/",
278
"open-source/projects/quad-pres/", "open-source/favourite/",
279
"open-source/interviews/", "open-source/contributions/",
280
"open-source/bits.html", "abstraction/", "software-tools/", "lecture/",
281
"lecture/Perl/Newbies/", "lecture/Freecell-Solver/", "lecture/lc/",
282
"lecture/Gimp/", "lecture/Autotools/", "lecture/WebMetaLecture/",
283
"essays/", "essays/Index/", "essays/open-source/", "essays/life/",
273
("", "me/", "personal.html", "me/contact-me/", "me/resumes/", "resume.html",
274
"resume_detailed.html", "humour/", "humour/TheEnemy/", "humour/TOWTF/",
275
"humour/Pope/", "humour.html", "humour/fortunes/", "MathVentures/",
276
"art/", "art/bk2hp/", "art/linux_banner/", "open-source/",
277
"open-source/projects/freecell-solver/", "jmikmod/", "rwlock/",
278
"open-source/projects/quad-pres/", "open-source/favourite/",
279
"open-source/interviews/", "open-source/contributions/",
280
"open-source/bits.html", "abstraction/", "software-tools/", "lecture/",
281
"lecture/Perl/Newbies/", "lecture/Freecell-Solver/", "lecture/lc/",
282
"lecture/Gimp/", "lecture/Autotools/", "lecture/WebMetaLecture/",
283
"essays/", "essays/Index/", "essays/open-source/", "essays/life/",
289
+{ 'path' => $_, 'title' => "Title for $_",
289
+{ 'path' => $_, 'title' => "Title for $_",
290
290
'content' => "<p>Content for $_</p>" }
315
315
my $full_path = "dest/$file_path";
316
316
$full_path =~ m{^(.*)/[^/]+$};
317
# mkpath() throws an exception if it isn't successful, which will cause
317
# mkpath() throws an exception if it isn't successful, which will cause
318
318
# this program to terminate. This is what we want.
319
319
mkpath($1, 0, 0755);
320
320
open my $out, ">", $full_path or
321
321
die "Could not open \"$full_path\" for writing!";
323
323
print {$out} <<"EOF";
324
324
<?xml version="1.0" encoding="iso-8859-1"?>
326
326
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
327
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
327
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
330
330
<title>$title</title>