IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28104


Ignore:
Timestamp:
May 25, 2010, 4:56:34 PM (16 years ago)
Author:
heather
Message:

more tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/haf_branches/ipp.20100512/ippScripts/scripts/minidvodb_createdb.pl

    r28034 r28104  
    3636}
    3737
    38 my (  $outroot, $dbname, $dvodb, $minidvodb_group, $camera, $minidvodb_name, $verbose, $no_update,
     38my (  $outroot, $dbname, $dvodb, $minidvodb_group, $camera, $verbose, $no_update,
    3939     $no_op, $redirect, $save_temps);
    4040GetOptions(   
     
    4242    'dbname|d=s'        => \$dbname, # Database name
    4343    'minidvodb_group|w=s'       => \$minidvodb_group, # minidvodb_group.
    44     'minidvodb_name|w=s' => \$minidvodb_name ,
    4544    'outroot|w=s'       => \$outroot, # output file base name
    4645    'dvodb|w=s'         => \$dvodb,  # output DVO database
     
    5453pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    5554pod2usage(
    56           -msg => "Required options: --camera --minidvodb_group --dvodb --minidvodb_group --minidvodb_name --outroot",
     55          -msg => "Required options: --camera  --dvodb --minidvodb_group --outroot",
    5756          -exitval => 3,
    5857          ) unless
    5958    defined $minidvodb_group and
    60     defined $minidvodb_name and
    61     defined $camera and
    62     defined $outroot and
     59    #defined $camera and
     60   #defined $outroot and
    6361    defined $dvodb;
    6462
    65 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $minidvodb_name   , $PS_EXIT_CONFIG_ERROR ); # IPP configuration
     63my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $minidvodb_group   , $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    6664
    67 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $minidvodb_name, $PS_EXIT_CONFIG_ERROR);
     65my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $minidvodb_group, $PS_EXIT_CONFIG_ERROR);
    6866
    6967if ($redirect) {
    70     $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $minidvodb_name, $PS_EXIT_SYS_ERROR );
     68    $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $minidvodb_group, $PS_EXIT_SYS_ERROR );
    7169    print "\n\n";
    7270    print "Starting script $0 on $host\n\n";
     
    9997
    10098unless ($no_op) {
    101     my $minidvodb_path;
    102     if (defined $dvodbReal) {
    103          $minidvodb_path = $dvodbReal . '/' . $minidvodb_name;
    104     } else {
    105         warn("dvodbReal undefined:\n");
    106         exit(4);
    107     }
     99   
     100   
    108101
    109102#see if there is already a new_not_ready
     
    134127#create the minidvodb entry (well, the command for it)
    135128    my $fpaCommand = "$addtool -addminidvodbrun";
    136     $fpaCommand .= " -set_minidvodb_name $minidvodb_name";
    137     $fpaCommand .= " -set_minidvodb_path $minidvodb_path";
    138129    $fpaCommand .= " -set_minidvodb_group $minidvodb_group";
    139130    $fpaCommand .= " -set_mergedvodb_path $dvodbReal";
    140131     $fpaCommand .= " -dbname $dbname" if defined $dbname;
    141    
     132    print $fpaCommand;
    142133   # complain if it doesn't work
    143134unless ($no_update) {
     
    157148{#complain if it doesn't work
    158149    my $msg = shift; # Warning message on die
    159     my $minidvodb_name = shift; # Camtool identifier
     150    my $minidvodb_group = shift; # Camtool identifier
    160151    my $exit_code = shift; # Exit code to add
    161152
Note: See TracChangeset for help on using the changeset viewer.