IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34485


Ignore:
Timestamp:
Sep 27, 2012, 1:27:02 PM (14 years ago)
Author:
Serge CHASTEL
Message:

Removed -difftype argument which is got from difftool output now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/publish_file.pl

    r34482 r34485  
    6363    'redirect-output'   => \$redirect,   # Redirect output to log file?
    6464    'output_format=i'   => \$output_format, # Output format for ppMops
    65     'difftype=s'        => \$difftype,    # "WW" / "WS" / "SW"
    6665    ) or pod2usage( 2 );
    6766
     
    224223            &my_die("Unable to parse metadata list", $pub_id, $PS_EXIT_PROG_ERROR);
    225224        my $reg_comp = $$reg_components[0];
     225
     226        # Now get the difftype value from diff->{diff_mode}
     227        my $difftype = "";
     228        if ($comp->{diff_mode} == 1) {
     229            $difftype = "WW";
     230        } elsif ($comp->{diff_mode} == 2) {
     231            $difftype = "WS";
     232        } elsif ($comp->{diff_mode} == 3) {
     233            $difftype = "SW"; # Not used yet
     234        } elsif ($comp->{diff_mode} == 4) {
     235            $difftype = "SS";
     236        } else {
     237            $difftype = "Unsupported diff_mode value: [" . $comp->{diff_mode} . "]";
     238        }
    226239
    227240        my $data = { zp => $zp,
Note: See TracChangeset for help on using the changeset viewer.