Changeset 12715


Ignore:
Timestamp:
2006-09-08T14:56:13+12:00 (18 years ago)
Author:
mdewsnip
Message:

Now supports MST and XRF files with uppercase extensions on Linux, since IsisGdl has been updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ISISPlug.pm

    r12705 r12715  
    124124
    125125    # Check the associated .fdt and .xrf files exist
    126     # These files must have a lowercase extension for the IsisGdl program to work
    127     # Bailing out because of this is kind of crappy but it is only an issue on Unix
    128     $self->{'fdt_file_path'} = $database_file_path_root . ".fdt";
     126    $self->{'fdt_file_path'} = $database_file_path_root . ".FDT";
     127    if (!-e $self->{'fdt_file_path'}) {
     128    $self->{'fdt_file_path'} = $database_file_path_root . ".fdt";
     129    }
    129130    if (!-e $self->{'fdt_file_path'}) {
    130131    print STDERR "<ProcessingError n='$mst_file_path_relative' r='Could not find ISIS FDT file $self->{'fdt_file_path'}'>\n" if ($self->{'gli'});
     
    132133    return;
    133134    }
    134     $self->{'xrf_file_path'} = $database_file_path_root . ".xrf";
     135    $self->{'xrf_file_path'} = $database_file_path_root . ".XRF";
     136    if (!-e $self->{'xrf_file_path'}) {
     137    $self->{'xrf_file_path'} = $database_file_path_root . ".xrf";
     138    }
    135139    if (!-e $self->{'xrf_file_path'}) {
    136140    print STDERR "<ProcessingError n='$mst_file_path_relative' r='Could not find ISIS XRF file $self->{'xrf_file_path'}'>\n" if ($self->{'gli'});
Note: See TracChangeset for help on using the changeset viewer.