Changeset 30459
- Timestamp:
- Feb 2, 2011, 12:23:45 PM (15 years ago)
- File:
-
- 1 edited
-
tags/ipp-20101215/ippTasks/register.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippTasks/register.pro
r30249 r30459 105 105 106 106 macro register.add.date 107 if ($0 != 2)108 echo "USAGE: register.add.date (YYYY-MM-DD) "107 if ($0 != 4) 108 echo "USAGE: register.add.date (YYYY-MM-DD) (DBNAME) (VALID_BURNTOOL)" 109 109 break 110 110 end … … 112 112 book newpage regDates $1 113 113 book setword regDates $1 nsState NEW 114 book setword regDates $1 dbname $DB:0 115 end 116 117 118 $valid_burntool_value = 14 114 book setword regDates $1 dbname $2 115 book setword regDates $1 valid_burntool $3 116 end 117 118 119 # $valid_burntool_value = 14 119 120 $sunrise = 17:30:00 120 121 $sunset = 03:30:00 … … 567 568 else 568 569 book getpage regDates $reg_datePAGE -var today 570 book getword regDates $reg_datePAGE dbname -var dbname 571 book getword regDates $reg_datePAGE valid_burntool -var valid_burntool 569 572 $reg_datePAGE ++ 570 573 if ($reg_datePAGE >= $Npages) set reg_datePAGE = 0 … … 577 580 $dateobs_begin = $today\T$sunset 578 581 $dateobs_end = $today\T$sunrise 579 $run = $run -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end -valid_burntool $valid_burntool_value 580 if ($DB:n == 0) 581 option DEFAULT 582 else 583 # save the DB name for the exit tasks 584 option $DB:$regPendingBurntoolImfile_DB 585 $run = $run -dbname $DB:$regPendingBurntoolImfile_DB 586 $regPendingBurntoolImfile_DB ++ 587 if ($regPendingBurntoolImfile_DB >= $DB:n) set regPendingBurntoolImfile_DB = 0 588 end 582 $run = $run -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end -valid_burntool $valid_burntool 583 $run = $run -dbname $dbname 584 # if ($DB:n == 0) 585 # option DEFAULT 586 # else 587 # # save the DB name for the exit tasks 588 # option $DB:$regPendingBurntoolImfile_DB 589 # $run = $run -dbname $DB:$regPendingBurntoolImfile_DB 590 # if ("$dbname" != "$DB:$regPendingBurntoolImfile_DB") 591 # break 592 # end 593 # $regPendingBurntoolImfile_DB ++ 594 # if ($regPendingBurntoolImfile_DB >= $DB:n) set regPendingBurntoolImfile_DB = 0 595 # end 589 596 590 597 # echo $run … … 697 704 book setword regDates $today nsState NEW 698 705 book setword regDates $today dbname $DB:0 706 book setword regDates $today valid_burntool 14 699 707 700 708 command true
Note:
See TracChangeset
for help on using the changeset viewer.
