version 1.11, 2013/02/27 14:56:26
|
version 1.12, 2013/03/01 14:38:47
|
Line 117 sub readComicConfig ($$) {
|
Line 117 sub readComicConfig ($$) {
|
sub writeComic ($$) { |
sub writeComic ($$) { |
my ( $comics, $comic, $date ) = @_; |
my ( $comics, $comic, $date ) = @_; |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $indexFile = $indexDir . "/index-" . $sd . |
my $indexFile = $indexDir . "/index-" . $date->{'year2'} . |
"-" . $date->{'year2'} . $date->{'mon2'} . |
$date->{'mon2'} . $date->{'day2'} . "-" . |
$date->{'day2'} . ".html"; |
$sd . ".html"; |
my $content = <<EOF; |
my $content = <<EOF; |
|
|
<!-- ********* Begin $comic ($comics->{$comic}{'fullName'}) ******* --> |
<!-- ********* Begin $comic ($comics->{$comic}{'fullName'}) ******* --> |
Line 173 sub writeMainIndex ($$) {
|
Line 173 sub writeMainIndex ($$) {
|
sub writeFooter { |
sub writeFooter { |
my ( $date ) = @_; |
my ( $date ) = @_; |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $indexFile = $indexDir . "/index-" . $sd . |
my $indexFile = $indexDir . "/index-" . $date->{'year2'} . |
"-" . $date->{'year2'} . $date->{'mon2'} . |
$date->{'mon2'} . $date->{'day2'} . "-" . |
$date->{'day2'} . ".html"; |
$sd . ".html"; |
my $sysDate = `date`; |
my $sysDate = `date`; |
|
|
open INDEX, ">>$indexFile"; |
open INDEX, ">>$indexFile"; |
Line 213 sub checkDir ($$) {
|
Line 213 sub checkDir ($$) {
|
sub writeTitle ($$) { |
sub writeTitle ($$) { |
my ( $date ) = @_; |
my ( $date ) = @_; |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $sd = substr( join( '', $days[$date->{'dow'}] ), 0, 3 ); |
my $indexFile = $indexDir . "/index-" . $sd . |
my $indexFile = $indexDir . "/index-" . $date->{'year2'} . |
"-" . $date->{'year2'} . $date->{'mon2'} . |
$date->{'mon2'} . $date->{'day2'} . "-" . |
$date->{'day2'} . ".html"; |
$sd . ".html"; |
my $today = $days[$date->{'dow'}] . " " . $date->{'mon'} . "/" . $date->{'day'} . "/" . $date->{'year'}; |
my $today = $days[$date->{'dow'}] . " " . $date->{'mon'} . "/" . $date->{'day'} . "/" . $date->{'year'}; |
|
|
open INDEX, ">$indexFile"; |
open INDEX, ">$indexFile"; |