IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2010, 8:23:10 AM (16 years ago)
Author:
eugene
Message:

minor change to support FILE.ID elements in filerules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r28097 r28153  
    10111011    $filename =~ s/\{OUTPUT\}/$output/;
    10121012    if ($filename =~ /\{CHIP\.NAME\}/) {
    1013         my ($chip, $cell) = ($component, $component); # Chip and cell names
     1013        my $chip = $component; # Chip name (only one component is allowed, will be used for all elements)
    10141014        $chip = "fpa" unless defined $chip;
     1015        $filename =~ s/\{CHIP\.NAME\}/$chip/;
     1016    }
     1017    if ($filename =~ /\{CELL\.NAME\}/) {
     1018        my $cell = $component; # Cell name
    10151019        $cell = "chip" unless defined $cell;
    1016         $filename =~ s/\{CHIP\.NAME\}/$chip/;
    10171020        $filename =~ s/\{CELL\.NAME\}/$cell/;
     1021    }
     1022    if ($filename =~ /\{FILE\.ID\}/) {
     1023        my $fileID = $component; # FILE.ID
     1024        $fileID = 0 unless defined $fileID;
     1025        my $fileN = sprintf ("%03d", $fileID);
     1026        $filename =~ s/\{FILE\.ID\}/$fileN/;
    10181027    }
    10191028
Note: See TracChangeset for help on using the changeset viewer.