;
close (ARCF);
@@ -2230,10 +2722,10 @@ sub check_validity_exp_dirs
# if ($first_line =~ /^\177ELF.*/)
$elf_magic_number = unpack ('H8', $first_line);
-# gp_message ("debug", $subr_name, "elf_magic_number = $elf_magic_number");
if ($elf_magic_number eq "7f454c46")
{
- $g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"} = $TRUE;
+ $g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"} =
+ $TRUE;
$g_exp_dir_meta_data{$exp_dir}{"elf_format"} = $TRUE;
last;
}
@@ -2243,22 +2735,24 @@ sub check_validity_exp_dirs
for my $exp_dir (sort keys %g_exp_dir_meta_data)
{
- $comment = "the loadobjects in the archive in $exp_dir are ";
- $comment .= ($g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"}) ? "in " : "not in ";
- $comment .= "ELF format";
- gp_message ("debug", $subr_name, $comment);
+ $msg = "the loadobjects in the archive in $exp_dir are";
+ $msg .= ($g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"}) ?
+ " in" : " not in";
+ $msg .= " ELF format";
+ gp_message ("debug", $subr_name, $msg);
}
for my $exp_dir (sort keys %g_exp_dir_meta_data)
{
if ($g_exp_dir_meta_data{$exp_dir}{"archive_is_empty"})
{
- gp_message ("debug", $subr_name, "there are no archived files in $exp_dir");
+ $msg = "there are no archived files in " . $exp_dir;
+ gp_message ("debug", $subr_name, $msg);
}
}
#------------------------------------------------------------------------------
-# If there are archived files and they are not in ELF format, a debug is
-# issued.
+# If there are archived files and they are not in ELF format, a debug message
+# is issued.
#
# TBD: Bail out?
#------------------------------------------------------------------------------
@@ -2267,12 +2761,14 @@ sub check_validity_exp_dirs
{
if (not $g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"})
{
- $count_exp_dir_not_elf++;
+ $count_exp_dir_not_elf++;
}
}
if ($count_exp_dir_not_elf != 0)
{
- gp_message ("debug", $subr_name, "there are $count_exp_dir_not_elf experiments with non-ELF load objects");
+ $msg = "there are $count_exp_dir_not_elf experiments with non-ELF";
+ $msg .= " load objects";
+ gp_message ("debug", $subr_name, $msg);
}
#------------------------------------------------------------------------------
@@ -2290,19 +2786,24 @@ sub check_validity_exp_dirs
## for my $exp_dir (sort @exp_dir_list)
for my $exp_dir (sort keys %g_exp_dir_meta_data)
{
- gp_message ("debugXL", $subr_name, "exp_dir = $exp_dir");
- gp_message ("debugXL", $subr_name, "g_exp_dir_meta_data{$exp_dir}{'archive_is_empty'}");
+ $msg = "exp_dir = " . $exp_dir;
+ gp_message ("debugXL", $subr_name, $msg);
+ $msg = "g_exp_dir_meta_data{$exp_dir}{'archive_is_empty'}";
+ $msg .= " = " . $g_exp_dir_meta_data{$exp_dir}{"archive_is_empty"};
+ gp_message ("debugXL", $subr_name, $msg);
if (not $g_exp_dir_meta_data{$exp_dir}{"archive_is_empty"})
{
$selected_archive = $exp_dir;
$archive_dir_not_empty = $TRUE;
$archive_dir_selected = $TRUE;
- $selected_archive_has_elf_format = ($g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"}) ? $TRUE : $FALSE;
+ $selected_archive_has_elf_format =
+ ($g_exp_dir_meta_data{$exp_dir}{"archive_in_elf_format"}) ?
+ $TRUE : $FALSE;
last;
}
}
- if (not $archive_dir_selected)
+ if (not $archive_dir_selected)
#------------------------------------------------------------------------------
# None are found and pick the first one without archived files.
#------------------------------------------------------------------------------
@@ -2319,35 +2820,52 @@ sub check_validity_exp_dirs
}
}
}
- gp_message ("debug", $subr_name, "experiment $selected_archive has been selected for archive analysis");
- gp_message ("debug", $subr_name, "this archive is ". (($archive_dir_not_empty) ? "not empty" : "empty"));
- gp_message ("debug", $subr_name, "this archive is ". (($selected_archive_has_elf_format) ? "in" : "not in")." ELF format");
+
+ $msg = "experiment $selected_archive has been selected for";
+ $msg .= " archive analysis";
+ gp_message ("debug", $subr_name, $msg);
+ $msg = "this archive is";
+ $msg .= $archive_dir_not_empty ? " not empty" : " empty";
+ gp_message ("debug", $subr_name, $msg);
+ $msg = "this archive is";
+ $msg .= $selected_archive_has_elf_format ? " in" : " not in";
+ $msg .= " ELF format";
+ gp_message ("debug", $subr_name, $msg);
#------------------------------------------------------------------------------
# Get the size of the hash that contains the archived files.
#------------------------------------------------------------------------------
## $NO_OF_FILES_IN_ARCHIVE = scalar (keys %ARCHIVES_FILES);
- $no_of_files_in_selected_archive = $g_exp_dir_meta_data{$selected_archive}{"no_of_files_in_archive"};
- gp_message ("debug", $subr_name, "number of files in archive $selected_archive is $no_of_files_in_selected_archive");
+ $no_of_files_in_selected_archive =
+ $g_exp_dir_meta_data{$selected_archive}{"no_of_files_in_archive"};
+ $msg = "number of files in archive $selected_archive is";
+ $msg .= " " . $no_of_files_in_selected_archive;
+ gp_message ("debug", $subr_name, $msg);
for my $exp_dir (sort keys %g_exp_dir_meta_data)
{
my $is_empty = $g_exp_dir_meta_data{$exp_dir}{"archive_is_empty"};
- gp_message ("debug", $subr_name, "archive directory $exp_dir/archives is ".($is_empty ? "empty" : "not empty"));
+ $msg = "archive directory $exp_dir/archives is";
+ $msg .= $is_empty ? " empty" : " not empty";
+ gp_message ("debug", $subr_name, $msg);
}
for my $exp_dir (sort keys %g_exp_dir_meta_data)
{
if (not $g_exp_dir_meta_data{$exp_dir}{"archive_is_empty"})
{
- for my $object (sort keys %{$g_exp_dir_meta_data{$exp_dir}{"archive_files"}})
+ for my $object (sort keys
+ %{$g_exp_dir_meta_data{$exp_dir}{"archive_files"}})
{
- gp_message ("debug", $subr_name, "$exp_dir $object $g_exp_dir_meta_data{$exp_dir}{'archive_files'}{$object}");
+ $msg = $exp_dir . " " . $object . " ";
+ $msg .=
+ $g_exp_dir_meta_data{$exp_dir}{'archive_files'}{$object};
+ gp_message ("debug", $subr_name, $msg);
}
}
}
- return ($dir_check_errors, $archive_dir_not_empty, $selected_archive, \%elf_rats);
+ return ($archive_dir_not_empty, $selected_archive, \%elf_rats);
} #-- End of subroutine check_validity_exp_dirs
@@ -2378,7 +2896,7 @@ sub color_string
{
$colored_string .= "";
}
- $colored_string .= "";
+ $colored_string .= "";
return ($colored_string);
@@ -2397,25 +2915,29 @@ sub create_exp_info
my @experiment_data = @{ $experiment_data_ref };
my @experiment_stats_html = ();
- my $experiment_stats_line;
+ my $experiment_stats_line;
+ my $msg;
my $plural;
$plural = ($#experiment_dir_list > 0) ? "s:" : ":";
$experiment_stats_line = "\n";
- $experiment_stats_line .= "Full pathnames to the input experiment" . $plural . "\n";
+ $experiment_stats_line .= "Full pathnames to the input experiment";
+ $experiment_stats_line .= $plural . "\n";
$experiment_stats_line .= "
\n";
$experiment_stats_line .= "\n";
for my $i (0 .. $#experiment_dir_list)
{
- $experiment_stats_line .= $experiment_dir_list[$i] . " (" . $experiment_data[$i]{"start_date"} . ")\n";
+ $experiment_stats_line .= $experiment_dir_list[$i] . " (" ;
+ $experiment_stats_line .= $experiment_data[$i]{"start_date"} . ")\n";
}
$experiment_stats_line .= "\n";
push (@experiment_stats_html, $experiment_stats_line);
- gp_message ("debugXL", $subr_name, "experiment_stats_line = $experiment_stats_line --");
+ $msg = "experiment_stats_line = " . $experiment_stats_line;
+ gp_message ("debugXL", $subr_name, $msg);
return (\@experiment_stats_html);
@@ -2448,9 +2970,11 @@ sub create_html_credits
my $msg;
my $the_date;
- my @months = qw (January February March April May June July August September October November December);
+ my @months = qw (January February March April May June July
+ August September October November December);
- my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime ();
+ my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
+ localtime ();
$year += 1900;
@@ -2484,17 +3008,18 @@ sub create_html_header
my $title = ${ $title_ref };
my $LANG = $g_locale_settings{"LANG"};
- my $background_color = $g_html_color_scheme{"background_color_page"};
+ my $background_color = $g_html_color_scheme{"background_color_page"};
- my $html_header;
+ my $html_header;
$html_header = "\n";
$html_header .= "\n";
$html_header .= "\n";
- $html_header .= "\n";
+ $html_header .= "\n";
$html_header .= "" . $title . "\n";
$html_header .= "\n";
- $html_header .= "\n";
+ $html_header .= "\n";
$html_header .= "