Changeset 30490
- Timestamp:
- Feb 3, 2011, 2:55:05 PM (15 years ago)
- Location:
- tags/ipp-20101215
- Files:
-
- 9 edited
-
DataStoreServer/scripts/dsreg (modified) (1 diff, 1 prop)
-
ippScripts/scripts/dist_advancerun.pl (modified) (8 diffs, 1 prop)
-
ippScripts/scripts/dist_bundle.pl (modified) (8 diffs, 1 prop)
-
ippScripts/scripts/dist_component.pl (modified) (5 diffs, 1 prop)
-
ippScripts/scripts/dist_defineruns.pl (modified) (4 diffs, 1 prop)
-
ippScripts/scripts/dist_make_fileset.pl (modified) (3 diffs, 1 prop)
-
ippTasks/dist.pro (modified) (6 diffs, 1 prop)
-
ippTasks/rcserver.pro (modified) (1 diff, 1 prop)
-
ippTasks/survey.pro (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/DataStoreServer/scripts/dsreg
- Property svn:mergeinfo set to
r29743 r30490 338 338 ## then copy or symlink the files into place 339 339 foreach my $ref (@files) { 340 my $src = (defined $abspath ? '' : "$datapath/") . "$ref->{file}";340 my $src_path = (defined $abspath ? '' : "$datapath/") . "$ref->{file}"; 341 341 my $filename = fileparse($ref->{file}, ()); 342 342 my $dest = "$fileset_dir/$filename"; 343 343 344 my $src = $ipprc->file_resolve($src_path); 345 if (!$src) { 346 print STDERR "failed to resolve file $src_path\n"; 347 exit $PS_EXIT_SYS_ERROR; 348 } 344 349 if ( !-e $src or !-r $src) { 345 350 print STDERR "source file $src does not exist or is not accessible\n"; -
tags/ipp-20101215/ippScripts/scripts/dist_advancerun.pl
- Property svn:mergeinfo set to
r28963 r30490 23 23 use PS::IPP::Config 1.01 qw( :standard ); 24 24 25 my $ipprc = PS::IPP::Config->new(); # IPP configuration26 25 27 26 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 29 28 30 29 # Parse the command-line arguments 31 my ($dist_id, $stage, $stage_id, $outdir, $clean );30 my ($dist_id, $stage, $stage_id, $outdir, $clean, $camera); 32 31 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile); 33 32 34 33 GetOptions( 35 'dist_id=s' => \$dist_id,# Magic destreak run identifier 34 'dist_id=s' => \$dist_id,# Magic destreak run identifier 35 'camera=s' => \$camera, 36 36 'stage=s' => \$stage, # raw, chip, warp, or diff 37 37 'stage_id=s' => \$stage_id, # exp_id, chip_id, warp_id, or diff_id … … 53 53 defined $stage_id and 54 54 defined $outdir; 55 56 my $ipprc = PS::IPP::Config->new($camera); # IPP configuration 55 57 56 58 $ipprc->redirect_output($logfile) if $logfile; … … 134 136 } 135 137 136 # XXX should we create a file rule for this? 137 my $dbinfo_file = "$outdir/dbinfo.$stage.$stage_id.mdc"; 138 139 { 140 my $command = "$tool_cmd $exportarg -outfile $dbinfo_file"; 138 139 # work around the fact that $ipprc->file_create does not actually create a file on disk 140 # unless the scheme is nebulous 141 sub create_file { 142 my $rule = shift; 143 my $path_base = shift; 144 my $ref = shift; 145 146 my $file; 147 148 my $error; 149 $file = $ipprc->prepare_output($rule, $path_base, undef, 1, \$error) 150 or &my_die("Unable to prepare outut for $rule", $dist_id, $PS_EXIT_SYS_ERROR); 151 152 my $scheme = file_scheme($file); 153 $scheme = "" if !$scheme; 154 155 my $resolved; 156 if ($scheme) { 157 $ipprc->file_create($file) 158 or &my_die("Unable to create $file", $dist_id, $PS_EXIT_SYS_ERROR); 159 160 $resolved = $ipprc->file_resolve($file) 161 or &my_die("Unable to resolve $file", $dist_id, $PS_EXIT_SYS_ERROR); 162 163 if ($scheme eq 'neb') { 164 &my_die("$resolved not found", $dist_id, $PS_EXIT_SYS_ERROR) unless ($resolved and -e $resolved); 165 } 166 } else { 167 $resolved = $file; 168 } 169 $$ref = $resolved; 170 171 return $file 172 } 173 174 my $dbinfo_root = "$outdir/dbinfo.$stage.$stage_id"; 175 my $resolved; 176 my $dbinfo_file = create_file("DIST.OUTPUT.DBINFO", $dbinfo_root, \$resolved); 177 178 { 179 my $command = "$tool_cmd $exportarg -outfile $resolved"; 141 180 $command .= " -clean" if ((defined $clean) and ($stage ne "raw")); 142 181 $command .= " -dbname $dbname" if defined $dbname; … … 149 188 } 150 189 } 151 my $dirinfo = "$outdir/dirinfo.$stage.$stage_id.mdc"; 190 191 my $dirinfo_root = "$outdir/dirinfo.$stage.$stage_id"; 192 my $dirinfo = create_file("DIST.OUTPUT.DIRINFO", $dirinfo_root, \$resolved); 193 152 194 { 153 195 my $command = "$tool_cmd $list_mode"; … … 168 210 &my_die("Unable to parse metadata list", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 169 211 170 open MANIFEST, ">$ dirinfo" or171 &my_die("Unable to open dirinfo file $ dirinfo", $dist_id, $PS_EXIT_UNKNOWN_ERROR);212 open MANIFEST, ">$resolved" or 213 &my_die("Unable to open dirinfo file $resolved", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 172 214 173 215 my $destdir; … … 197 239 &my_die("unable to find path", $dist_id, $PS_EXIT_UNKNOWN_ERROR) if !$path; 198 240 my $component_dir = find_componentdir($destdir, $path); 199 # print MANIFEST "$component METADATA\n";200 241 print MANIFEST "\t" , "$component", "\tSTR\t", $component_dir, "\n"; 201 242 } … … 217 258 } 218 259 } 219 220 260 221 261 exit 0; -
tags/ipp-20101215/ippScripts/scripts/dist_bundle.pl
- Property svn:mergeinfo set to
r29960 r30490 16 16 17 17 use IPC::Cmd 0.36 qw( can_run run ); 18 use File::Temp qw( tempfile );18 use File::Temp qw( tempfile tempdir ); 19 19 use File::Basename qw( basename ); 20 20 use Digest::MD5::File qw( file_md5_hex ); … … 71 71 # Parse the command-line arguments 72 72 my ($camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $alt_path_base, $clean); 73 my ($out dir, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $results_file, $prefix);73 my ($outroot, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $results_file, $prefix); 74 74 my ($dbname, $save_temps, $verbose, $no_update, $logfile); 75 75 … … 88 88 'magicked' => \$magicked, # magicked state for this component 89 89 'alt_path_base=s'=> \$alt_path_base, # path to alternate inputs 90 'out dir=s' => \$outdir, # "directory" for outputs90 'outroot=s' => \$outroot, # outroot 91 91 'prefix=s' => \$prefix, # "prefix" to apply to filenames 92 92 'clean' => \$clean, # create clean distribution … … 99 99 100 100 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 101 pod2usage( -msg => "Required options: --camera --stage --stage_id --component --path_base --out dir",101 pod2usage( -msg => "Required options: --camera --stage --stage_id --component --path_base --outroot", 102 102 -exitval => 3) unless 103 103 defined $camera and … … 106 106 defined $component and 107 107 defined $path_base and 108 defined $out dir;108 defined $outroot; 109 109 110 110 $ipprc->redirect_output($logfile) if $logfile; … … 116 116 $ipprc->define_camera($camera); 117 117 118 # create the output directories if it is not a nebulous path and it doesn't exist 119 if (index($outdir, "neb://") != 0) { 120 if (! -e $outdir ) { 121 my $code = system "mkdir -p $outdir"; 122 &my_die("cannot create output directory $outdir", $component, 123 $code >> 8) if $code; 124 } 125 } 118 $ipprc->outroot_prepare($outroot); 126 119 127 120 # Get the list of data products for this component … … 138 131 # set up directory for temporary files 139 132 140 my $tmpdir = "$outdir/tmpdir.$component.$$"; 141 if (-e $tmpdir) { 142 if (-d $tmpdir) { 143 my $rc = system "rm -r $tmpdir"; 144 &my_die("cannot rm $tmpdir return code: $rc", $component, $PS_EXIT_UNKNOWN_ERROR) if $rc; 145 } else { 146 unlink $tmpdir or &my_die("cannot delete $tmpdir", $component, $PS_EXIT_UNKNOWN_ERROR); 147 } 148 } 149 mkdir $tmpdir or &my_die("cannot create temporary directory $tmpdir", $component, 150 $PS_EXIT_UNKNOWN_ERROR); 133 my $temproot = metadataLookupStr($ipprc->{_siteConfig}, "TEMP.DIR"); 134 $temproot = "/tmp" if !defined $temproot; 135 &my_die("directory for TEMP.DIR $temproot does not exist", $component, $PS_EXIT_CONFIG_ERROR) if ! -e $temproot; 136 137 my $tmpdir = tempdir("$temproot/dist.XXXX", CLEANUP => !$save_temps); 151 138 152 139 # … … 349 336 if ($num_files) { 350 337 # create the tarfile 351 # XXX TODO: create a file rule for the tar file name 352 my $tbase = basename($path_base); 353 $tbase .= ".$component" if $component; 354 $file_name = ($prefix ? $prefix : "") . "$tbase.tgz"; 355 my $tarfile = "$outdir/$file_name"; 338 # my $tbase = basename($path_base); 339 # $tbase .= ".$component" if $component; 340 # $file_name = ($prefix ? $prefix : "") . "$tbase.tgz"; 341 my $error; 342 my $output_tarfile; 343 my $rule; 344 if ($stage eq 'chip' or $stage eq 'chip_bg' or $stage eq 'raw') { 345 $rule = "DIST.OUTPUT.CHIP.BUNDLE"; 346 } else { 347 $rule = "DIST.OUTPUT.BUNDLE"; 348 } 349 $output_tarfile = $ipprc->prepare_output($rule, $outroot, $component, 1, \$error) 350 or &my_die("Failed to prepare output tarfile: $error", $component, $error); 351 $file_name = basename($output_tarfile); 352 353 354 my $scheme = file_scheme($output_tarfile); 355 356 my $tarfile; 357 if ($scheme) { 358 $ipprc->file_create($output_tarfile) 359 or &my_die("Failed to create $output_tarfile: $error", $component, $error); 360 $tarfile = $ipprc->file_resolve($output_tarfile); 361 362 if ($scheme eq 'neb') { 363 &my_die("output file $output_tarfile not found", $component, $PS_EXIT_SYS_ERROR) 364 unless ($tarfile and -e $tarfile); 365 } 366 } else { 367 # no scheme the filename and the resolved filename are the same 368 $tarfile = $output_tarfile; 369 } 356 370 357 371 my $command = "tar -C $tmpdir --owner=ipp --group=users -czhf $tarfile ."; -
tags/ipp-20101215/ippScripts/scripts/dist_component.pl
- Property svn:mergeinfo set to
r27718 r30490 21 21 use PS::IPP::Metadata::Config; 22 22 use PS::IPP::Metadata::List qw( parse_md_list ); 23 24 23 use PS::IPP::Config 1.01 qw( :standard ); 25 26 my $ipprc = PS::IPP::Config->new(); # IPP configuration27 24 28 25 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 77 74 defined $outdir; 78 75 76 my $ipprc = PS::IPP::Config->new($camera); # IPP configuration 79 77 $ipprc->redirect_output($logfile) if $logfile; 78 79 my $temproot = metadataLookupStr($ipprc->{_siteConfig}, "TEMP.DIR"); 80 81 $temproot = "/tmp" if !defined $temproot; 80 82 81 83 if (($stage eq 'raw') and !$clean and !defined $chip_path_base) { … … 85 87 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 86 88 87 my ($rf, $rf_name) = tempfile(" /tmp/bundleresults.$dist_id.$component.XXXX", UNLINK => !$save_temps);89 my ($rf, $rf_name) = tempfile("$temproot/bundleresults.$dist_id.$component.XXXX", UNLINK => !$save_temps); 88 90 close $rf; 91 92 my $basename = basename($path_base); 93 my $outroot = "$outdir/$basename"; 89 94 90 95 my ($file_name, $bytes, $md5sum); … … 92 97 my $command = "$dist_make_bundle --camera $camera --stage $stage --stage_id $stage_id"; 93 98 $command .= " --results_file $rf_name"; 94 $command .= " --component $component --path_base $path_base --out dir $outdir";99 $command .= " --component $component --path_base $path_base --outroot $outroot"; 95 100 $command .= " --chip_path_base $chip_path_base" if $chip_path_base; 96 101 $command .= " --state $run_state" if defined $run_state; … … 136 141 &my_die("undefined file md5sum from dist_bundle.pl", $dist_id, $component, $outdir, $PS_EXIT_PROG_ERROR) unless defined $md5sum; 137 142 } 143 138 144 139 145 { -
tags/ipp-20101215/ippScripts/scripts/dist_defineruns.pl
- Property svn:mergeinfo set to
r29068 r30490 42 42 43 43 # Parse the command-line arguments 44 my ($stage, $stage_limit, $dist_root, $ no_magic);44 my ($stage, $stage_limit, $dist_root, $workdir, $no_magic); 45 45 my ($dbname, $save_temps, $verbose, $no_update, $logfile); 46 46 my @labels; … … 49 49 'stage=s' => \$stage, # stage to queue 50 50 'label=s' => \@labels, # labels 51 'workdir=s' => \$workdir, # workdir 51 52 'stage_limit=s' => \$stage_limit,# maximum number of runs queued for each stage 52 'dist_root=s' => \$dist_root, # root of distribution work area53 # 'dist_root=s' => \$dist_root, # root of distribution work area 53 54 'no_magic' => \$no_magic, # queue runs without requiring magic (for testing only) 54 55 'dbname=s' => \$dbname, # Database name … … 66 67 $ipprc->redirect_output($logfile) if $logfile; 67 68 68 if (!$dist_root) { 69 $dist_root = metadataLookupStr($ipprc->{_siteConfig}, "DISTRIBUTION_ROOT"); 70 &my_die("failed to find DISTRIBUTION_ROOT in site configuration", $PS_EXIT_CONFIG_ERROR) if !$dist_root; 69 if (!$workdir) { 70 print "workdir not supplied will use DISTRIBUTION_ROOT\n"; 71 # old method where we set workdir based on a config file 72 if (!$dist_root) { 73 $dist_root = metadataLookupStr($ipprc->{_siteConfig}, "DISTRIBUTION_ROOT"); 74 &my_die("failed to find DISTRIBUTION_ROOT in site configuration", $PS_EXIT_CONFIG_ERROR) if !$dist_root; 75 } 76 77 my ($day, $month, $year) = (gmtime)[3,4,5]; 78 my $datestr = sprintf "%04d%02d%02d", $year+1900, $month + 1, $day; 79 80 $workdir = $dist_root . "/$datestr"; 81 82 print "workdir is $workdir\n"; 71 83 } 72 73 my ($day, $month, $year) = (gmtime)[3,4,5];74 my $datestr = sprintf "%04d%02d%02d", $year+1900, $month + 1, $day;75 76 my $workdir = "$dist_root/$datestr";77 78 print "workdir is $workdir\n";79 84 80 85 # if stage is not supplied as an argument, loop over all stages … … 90 95 my $command = "$disttool -definebyquery -stage $stage -workdir $workdir -label $label"; 91 96 $command .= " -no_magic" if $no_magic; 92 $command .= " - dry_run" if $no_update;97 $command .= " -pretend" if $no_update; 93 98 $command .= " -limit $stage_limit" if $stage_limit; 94 99 $command .= " -set_label $label"; -
tags/ipp-20101215/ippScripts/scripts/dist_make_fileset.pl
- Property svn:mergeinfo set to
r28963 r30490 96 96 # make sure that the database info file for this run exists 97 97 my $dbinfo_file = "$dist_dir/dbinfo.$stage.$stage_id.mdc"; 98 if (! -e "$dbinfo_file") {98 if (! $ipprc->file_exists($dbinfo_file) ) { 99 99 &my_die("dbinfo file for dist run $dbinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR); 100 100 } … … 103 103 # make sure that the dirinfo file for this run exists 104 104 my $dirinfo_file = "$dist_dir/dirinfo.$stage.$stage_id.mdc"; 105 if (! -e "$dirinfo_file") {105 if (!$ipprc->file_exists($dirinfo_file)) { 106 106 &my_die("dirinfo file for dist run $dirinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR); 107 107 } … … 277 277 $command .= " -dbname $dbname" if $dbname; 278 278 279 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 280 run(command => $command, verbose => $verbose); 281 unless ($success) { 282 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 283 print STDERR "Unable to perform $command error_code: $error_code\n"; 279 if (!$no_update) { 280 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 281 run(command => $command, verbose => $verbose); 282 unless ($success) { 283 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 284 print STDERR "Unable to perform $command error_code: $error_code\n"; 285 } 286 } else { 287 print STDERR "skipping $command\n"; 284 288 } 285 289 exit $fault; -
tags/ipp-20101215/ippTasks/dist.pro
-
Property svn:mergeinfo
set to
/branches/czw_branch/20101203/ippTasks/dist.pro merged eligible /branches/eam_branches/ipp-20101103/ippTasks/dist.pro merged eligible /trunk/ippTasks/dist.pro merged eligible
r30435 r30490 95 95 end 96 96 97 # This is now only used if we are not using a nebulous outroot 97 98 macro get.host.for.component 98 99 if ($0 != 3) … … 122 123 end 123 124 125 # This is now only used if we are not using a nebulous outroot 124 126 macro set.dist.workdir.by.component 125 127 if ($0 != 5) … … 139 141 book getword ipphosts distribution count -var count 140 142 if ("$count" == "NULL") 141 echo "ERROR: distributi n hosts list is empty"143 echo "ERROR: distribution hosts list is empty" 142 144 break 143 145 end … … 289 291 end 290 292 291 292 set.dist.workdir.by.component $DIST_STAGE_ID $COMPONENT $OUTDIR_TEMPLATE OUTDIR293 if ("$OUTDIR" == "NULL")294 echo ERROR failed to set workdir for $COMPONENT295 break296 end297 298 293 substr $COMPONENT 0 3 COMP_HEAD 299 294 if ("$COMP_HEAD" == "sky") 300 295 set.host.for.skycell $COMPONENT 296 set.workdir.by.skycell $COMPONENT $OUTDIR_TEMPLATE $default_host OUTDIR 301 297 else 302 # assume component is a class_id, if not we will default to anyhost 298 # assume component is a class_id, if it is not we will default to 299 # host "anyhost" 300 # and volume "any" 303 301 set.host.for.camera $CAMERA $COMPONENT 302 set.workdir.by.camera $CAMERA $COMPONENT $OUTDIR_TEMPLATE $default_host OUTDIR 303 end 304 305 if ("$OUTDIR" == "NULL") 306 echo ERROR failed to set workdir for $COMPONENT 307 break 304 308 end 305 309 306 310 sprintf logfile "%s/dist.%s.%s.log" $OUTDIR $DIST_ID $COMPONENT 307 # stdout $logfile308 # stderr $logfile309 311 310 312 $run = dist_component.pl --dist_id $DIST_ID --camera $CAMERA --stage $DIST_STAGE --stage_id $DIST_STAGE_ID --component $COMPONENT --path_base $PATH_BASE --chip_path_base $CHIP_PATH_BASE --state $STATE --data_state $DATA_STATE $EXTRA_ARGS --outdir $OUTDIR --logfile $logfile … … 401 403 book getpage distToAdvance 0 -var pageName -key pantaskState INIT 402 404 if ("$pageName" == "NULL") break 405 406 # XXX the sql for disttool -toadvance does not include the camera: 407 # hack around this for now 408 $CAMERA = GPC1 403 409 404 410 book setword distToAdvance $pageName pantaskState RUN … … 414 420 end 415 421 416 host anyhost 417 418 # using $DIST_ID as the "component" works fine here since we only look 419 # at the last two digits. But make sure that there 2 digits 420 $fake_component = $STAGE_ID + 10 421 set.dist.workdir.by.component $fake_component "exposure" $OUTDIR_TEMPLATE OUTDIR 422 substr $OUTDIR_TEMPLATE 0 3 SCHEME 423 if ("$SCHEME" == "neb") 424 # XXX This does not work if workdir is not in nebulous 425 # and $default_host == "any" because /data/any does not exist 426 # use "dummy" as component. Result will be 'any' 427 # set.workdir.by.camera $CAMERA dummy $OUTDIR_TEMPLATE $default_host OUTDIR 428 set.workdir.by.camera GPC1 dummy $OUTDIR_TEMPLATE $default_host OUTDIR 429 else 430 # using $DIST_ID as the "component" works fine here since we only look 431 # at the last two digits. But make sure that there 2 digits 432 $fake_component = $STAGE_ID + 10 433 set.dist.workdir.by.component $fake_component "exposure" $OUTDIR_TEMPLATE OUTDIR 434 end 435 422 436 if ("$OUTDIR" == "NULL") 423 437 echo ERROR failed to set workdir for $DIST_ID 424 438 break 425 439 end 440 host anyhost 426 441 427 442 sprintf logfile "%s/dist.advance.%s.log" $OUTDIR $DIST_ID 428 # stdout $logfile 429 # stderr $logfile 430 431 $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --outdir $OUTDIR $EXTRA_ARGS --logfile $logfile 443 444 $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --camera $CAMERA --outdir $OUTDIR $EXTRA_ARGS --logfile $logfile 432 445 add_standard_args run 433 446 -
Property svn:mergeinfo
set to
-
tags/ipp-20101215/ippTasks/rcserver.pro
-
Property svn:mergeinfo
set to
/branches/czw_branch/20101203/ippTasks/rcserver.pro merged eligible /branches/eam_branches/ipp-20101103/ippTasks/rcserver.pro merged eligible /trunk/ippTasks/rcserver.pro merged eligible
r28792 r30490 136 136 137 137 sprintf logfile "%s/makefs.%s.%s.log" $DIST_DIR $DIST_ID $DEST_ID 138 stdout $logfile139 stderr $logfile140 138 141 139 book setword rcPendingFS $pageName pantaskState RUN 142 140 143 $run = dist_make_fileset.pl --dist_id $DIST_ID --target_id $TARGET_ID --stage $STAGE --stage_id $STAGE_ID --data_group $DATA_GROUP --filter $FILTER --dest_id $DEST_ID --product_name $PRODUCT_NAME --ds_dbhost $DS_DBHOST --ds_dbname $DS_DBNAME --dist_dir $DIST_DIR 141 $run = dist_make_fileset.pl --dist_id $DIST_ID --target_id $TARGET_ID --stage $STAGE --stage_id $STAGE_ID --data_group $DATA_GROUP --filter $FILTER --dest_id $DEST_ID --product_name $PRODUCT_NAME --ds_dbhost $DS_DBHOST --ds_dbname $DS_DBNAME --dist_dir $DIST_DIR --logfile $logfile 144 142 145 143 add_standard_args run -
Property svn:mergeinfo
set to
-
tags/ipp-20101215/ippTasks/survey.pro
-
Property svn:mergeinfo
set to
/branches/czw_branch/20101203/ippTasks/survey.pro merged eligible /branches/eam_branches/ipp-20101103/ippTasks/survey.pro merged eligible /trunk/ippTasks/survey.pro merged eligible
r30414 r30490 287 287 # user functions to manipulate dist labels 288 288 macro survey.add.dist 289 if ($0 != 2)290 echo "USAGE: survey.add.dist (label) "289 if ($0 != 3) 290 echo "USAGE: survey.add.dist (label) (workdir)" 291 291 break 292 292 end 293 293 book newpage SURVEY_DIST $1 294 book setword SURVEY_DIST $1 WORKDIR $2 294 295 book setword SURVEY_DIST $1 STATE PENDING 295 296 end … … 896 897 end 897 898 899 book getword SURVEY_DIST $label WORKDIR -var workdir_base 900 $year = `date +%Y` 901 $month = `date +%m` 902 $day = `date +%d` 903 $workdir = $workdir_base/$label/$year/$month/$day 904 898 905 book setword SURVEY_DIST $label STATE DONE 899 906 900 907 # note workdir is set by the script based on site.config 901 $run = dist_defineruns.pl --label $label 908 $run = dist_defineruns.pl --label $label --workdir $workdir 902 909 903 910 if ($DB:n == 0) … … 908 915 end 909 916 910 # echo $run 917 if ($VERBOSE > 1 ) 918 echo $run 919 end 911 920 command $run 912 921 end -
Property svn:mergeinfo
set to
Note:
See TracChangeset
for help on using the changeset viewer.
