Changeset 28609
- Timestamp:
- Jul 2, 2010, 6:35:13 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippScripts/scripts/automate_stacks.pl (modified) (8 diffs)
-
ippconfig/recipes/nightly_science.config (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/automate_stacks.pl
r28581 r28609 41 41 # Grab options 42 42 my ( $date, $camera, $dbname, $logfile, $verbose, $manual); 43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $ check_mode);43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode); 44 44 my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips); 45 45 my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old); … … 60 60 'this_target_only=s' => \$this_target_only, 61 61 'this_filter_only=s' => \$this_filter_only, 62 'this_mode_only=s' => \$this_mode_only, 62 63 'check_registration' => \$check_registration, 63 64 'define_burntool' => \$define_burntool, … … 87 88 --this_target_only Process only a single target. 88 89 --this_filter_only Process only a single filter. 90 --this_mode_only Process only a single clean mode. 89 91 Modes: 90 92 --check_registration Confirm the data downloaded correctly. … … 130 132 my %detfilter_list = (); 131 133 my %detmax_list = (); 134 my @mode_list = (); 132 135 my %clean_commands = (); 133 136 my %clean_retention = (); … … 152 155 if (${ $mentry }{name} eq 'MODE') { 153 156 $this_mode = ${ $mentry }{value}; 157 push @mode_list, $this_mode; 154 158 } 155 159 elsif (${ $mentry }{name} eq 'COMMAND') { … … 264 268 } 265 269 die("$this_filter_only is invalid.") if ($#filter_list != 0); 270 } 271 272 if (defined($this_mode_only)) { 273 foreach my $t (@mode_list) { 274 if ($t eq $this_mode_only) { 275 @mode_list = ($this_mode_only); 276 last; 277 } 278 } 279 die("$this_mode_only is invalid.") if ($#mode_list != 0); 266 280 } 267 281 … … 842 856 } 843 857 if (($metadata_out{nsState} eq 'CHECKDETRENDS') && ($exposures > 0)) { 844 $metadata_out{nsState} eq 'QUEUE _DETRENDS';858 $metadata_out{nsState} eq 'QUEUEDETRENDS'; 845 859 } 846 860 } … … 1043 1057 my $pretend = shift; 1044 1058 1045 foreach my $mode ( sort (keys (%clean_commands))) {1059 foreach my $mode (@mode_list) { 1046 1060 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1047 1061 my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode); -
trunk/ippconfig/recipes/nightly_science.config
r28581 r28609 15 15 MODE STR DIFF 16 16 COMMAND STR difftool 17 # RETENTION_TIME U16 3018 RETENTION_TIME S16 -117 RETENTION_TIME S16 30 18 # RETENTION_TIME S16 -1 19 19 END 20 20 CLEAN_MODES METADATA 21 21 MODE STR DIST 22 COMMAND STR disttool -22 COMMAND STR disttool 23 23 RETENTION_TIME S16 7 24 24 ALTERNATE_CMD STR A
Note:
See TracChangeset
for help on using the changeset viewer.
