- Timestamp:
- Jul 30, 2010, 9:31:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/ippMonitor/scripts/generate
r26888 r28794 35 35 &init_key ("FIELDS"); 36 36 &init_key ("GROUPS"); 37 &init_key ("TOPLOT"); 38 &init_key ("PLOTTER"); 39 &init_key ("PLOTTITLE"); 37 40 38 41 foreach $line (@list) { … … 43 46 if ($key eq "TABLE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 44 47 if ($key eq "TYPE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 48 if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 49 if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 50 if ($key eq "PLOTTITLE") { 51 ($value) = $value =~ m|^\s*(.+)\s*$|; 52 $value =~ s/\s/_/g; 53 } 45 54 46 55 &set_keypair ($key, $value); … … 153 162 } 154 163 164 foreach $opword (@opwords) { 165 &parse_opwords ($opword); 166 } 167 155 168 foreach $imagedef (@imagedefs) { 156 169 &parse_imagedef ($imagedef); 157 }158 159 foreach $opword (@opwords) {160 &parse_opwords ($opword);161 170 } 162 171 … … 253 262 # generate a table header cell (<th> </th>) for each field (show != none) 254 263 sub write_table_header { 255 256 264 # print the table header (field labels) 257 265 print FILE "echo \"<tr><td></td>\\n\";\n"; … … 438 446 next; 439 447 } 448 440 449 } 441 450 } … … 617 626 ($var, $name, $rule, $camera, $class) = split (" ", $value); 618 627 $name = &parse_fieldname ($name); 628 if (exists $ops{$name}) { 629 #if OPx was defined, replace it by its value 630 $name = $ops{$name}; 631 $name =~ s/\s+//g; 632 } 619 633 $camera = &parse_fieldname ($camera); 620 634 $class = &parse_fieldname ($class); … … 682 696 if ($key eq $key[$i]) { 683 697 if ($VERBOSE) { print "found $key: $key[$i] -- $value[$i] (def: $default)\n"; } 684 if (($default eq "") && ($value[$i] eq "")) { die " missing value for required key $key[$i]\n"; }698 if (($default eq "") && ($value[$i] eq "")) { die "check_key: missing value for required key $key[$i]\n"; } 685 699 if ($value[$i] eq "") { $value[$i] = $default; } 686 700 return; … … 695 709 if ($VERBOSE) { print "$key[$i] -- $value[$i]\n"; } 696 710 if ($line =~ m|\$$key[$i]|) { 697 if ($value[$i] eq "") { die " missing value for required key $key[$i]\n"; }711 if ($value[$i] eq "") { die "check_keypairs: missing value for required key $key[$i]\n"; } 698 712 $line =~ s|\$$key[$i]|$value[$i]|g; 699 713 } … … 708 722 # against the expectation at runtime. for the moment, 709 723 # calculate by hand and add to def.d file 710
Note:
See TracChangeset
for help on using the changeset viewer.
