IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38564


Ignore:
Timestamp:
Jul 2, 2015, 9:41:58 AM (11 years ago)
Author:
bills
Message:

add hack to deal with files processed remotely and thus have incorrect
paths in the config dump files

File:
1 edited

Legend:

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

    r37077 r38564  
    201201
    202202    my $file_name = $file->{name};
     203
     204    # look for file names that were processed remotely (LANL or UH Cray for example)
     205    # and change them to nebulous names
     206    if ( !($file_name =~ '^neb:') ) {
     207        # XXX: These two definitions should probably live in a config file
     208        my @remote_paths_to_replace =  ('/lus/scratch/watersc', '/scratch3/watersc1');
     209        my $local_path = 'neb://any';
     210        # find filenames that begin with the remote paths and change them to a nebulous path
     211        foreach my $remote_path (@remote_paths_to_replace) {
     212            if ($file_name =~ "^$remote_path") {
     213                $file_name =~ s{^$remote_path}{$local_path};
     214                last;
     215            }
     216        }
     217    }
    203218    my $path = $ipprc->file_resolve($file_name);
    204219
Note: See TracChangeset for help on using the changeset viewer.