IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23747


Ignore:
Timestamp:
Apr 8, 2009, 12:21:43 PM (17 years ago)
Author:
Paul Price
Message:

Adding default names for {CHIP.NAME} and {CELL.NAME}.

File:
1 edited

Legend:

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

    r23495 r23747  
    10011001    $filename =~ s/\{OUTPUT\}/$output/;
    10021002    if ($filename =~ /\{CHIP\.NAME\}/) {
    1003         unless (defined $component) {
    1004             carp "Programming error";
    1005             return undef;
    1006         }
    1007         $filename =~ s/\{CHIP\.NAME\}/$component/;
    1008         $filename =~ s/\{CELL\.NAME\}/$component/;
     1003        my ($chip, $cell) = ($component, $component); # Chip and cell names
     1004        $chip = "fpa" unless defined $chip;
     1005        $cell = "chip" unless defined $cell;
     1006        $filename =~ s/\{CHIP\.NAME\}/$chip/;
     1007        $filename =~ s/\{CELL\.NAME\}/$cell/;
    10091008    }
    10101009
     
    10431042
    10441043    if ($extname =~ /\{CHIP\.NAME\}/) {
    1045         unless (defined $component) {
    1046             carp "Programming error";
    1047             return undef;
    1048         }
    1049         $extname =~ s/\{CHIP\.NAME\}/$component/;
     1044        my $chip = $component;  # Chip name
     1045        $chip = "fpa" unless defined $chip;
     1046        $extname =~ s/\{CHIP\.NAME\}/$chip/;
    10501047    }
    10511048
Note: See TracChangeset for help on using the changeset viewer.