--- mitgcm.org/devel/buildweb/bin/bonniefy.pl 2003/07/23 17:54:35 1.2 +++ mitgcm.org/devel/buildweb/bin/bonniefy.pl 2006/04/09 13:30:36 1.4 @@ -110,7 +110,7 @@ $notfound = 1; $j=0; - while (($j < $#htmlfiles) && ($notfound)) { + while (($j <= $#htmlfiles) && ($notfound)) { open(THISHTML,$htmlfiles[$j]) || die("can't open $htmlfiles[$j]"); while () { @@ -160,7 +160,7 @@ ### added by AJA: create a flag to indicate whether file has been associated # with a template (1 = no and 0 = yes) $thisfile=0; - while ($thisfile < $#htmlfiles) { + while ($thisfile <= $#htmlfiles) { $htmlfileassociated[$thisfile]=1; $thisfile++; } # loop through file @@ -195,7 +195,7 @@ $pattern = $template2patternlist[$thispattern+1]; $thisfile=0; - while ($thisfile < $#htmlfiles) { + while ($thisfile <= $#htmlfiles) { open(THISHTML,$htmlfiles[$thisfile]) || die("can't open $htmlfiles[$thisfile]"); while () { if (/$pattern/ && $htmlfileassociated[$thisfile]){