IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28907


Ignore:
Timestamp:
Aug 12, 2010, 3:44:01 PM (16 years ago)
Author:
rhenders
Message:

Now creates a subdir for data with same name as DVO Db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/ippToPsps_run.pl

    r28895 r28907  
    188188        # generate batch path from batch IDs
    189189        my $batch = sprintf("B%08d", $batchId);
    190         my $batchDir = sprintf("$output/$batch");
     190        my $dvoDir = "$output/$dvoDb";
     191        my $batchDir = "$dvoDir/$batch";
     192
     193        # make directories
     194        unless(-d $dvoDir) {mkdir($dvoDir, 0777);}
    191195        mkdir($batchDir, 0777);
     196
    192197        $published = 0;
    193198
     
    203208            if (writeBatchManifest($batchDir, $batch, $batchType, $surveyType, $filename, $minObjId, $maxObjId)) {
    204209
     210                # tar n' zip
    205211                if (!$dontTarNZip) {
    206                     my $tarball = tarAndZipBatch($output, $batch);
     212                    my $tarball = tarAndZipBatch($dvoDir, $batch);
     213
     214                    # and publish
    207215                    if ($tarball && defined $datastore ) {
    208216                       
    209                         $published = $datastore->register($batch, $output, $tarball, "IPP_PSPS", "tgz");
     217                        $published = $datastore->register($batch, $dvoDir, $tarball, "IPP_PSPS", "tgz");
    210218                    }
    211219                }
Note: See TracChangeset for help on using the changeset viewer.