Subversion Repositories DevTools

Rev

Rev 4324 | Rev 5710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4324 Rev 5411
Line 455... Line 455...
455
    my $self = shift;
455
    my $self = shift;
456
    ::DebugDumpData("PackageEntry", $self );
456
    ::DebugDumpData("PackageEntry", $self );
457
}
457
}
458
 
458
 
459
#-------------------------------------------------------------------------------
459
#-------------------------------------------------------------------------------
-
 
460
# Function        : getUnifiedName 
-
 
461
#
-
 
462
# Description     : Return a Package Name based on PackageName and project suffix
-
 
463
#                   Package Name is cleaned up a bit
-
 
464
#                       Replace non-alphanumenrics with a '_'
-
 
465
#                       Converted to upper case 
-
 
466
#
-
 
467
# Inputs          : $self
-
 
468
#                   $prefix         - Optional Prefix 
-
 
469
#                   $suffix         - Optional Suffix 
-
 
470
#
-
 
471
# Returns         : String
-
 
472
#
-
 
473
sub getUnifiedName
-
 
474
{
-
 
475
    my ($self,$prefix,$suffix) = @_;
-
 
476
    
-
 
477
    my $name = $prefix || '';
-
 
478
    $name .= $self->{'DNAME'};
-
 
479
    $name .= '_' . $self->{'DPROJ'} if $self->{'DPROJ'};
-
 
480
    $name .= $suffix || '';
-
 
481
 
-
 
482
    $name =~ s~\W~_~g; 
-
 
483
    $name =~ s~-~_~g; 
-
 
484
    $name =~ tr~_~_~s;
-
 
485
    $name = uc $name;
-
 
486
    return $name;
-
 
487
}
-
 
488
 
-
 
489
 
-
 
490
#-------------------------------------------------------------------------------
460
# Function        : getBase
491
# Function        : getBase
461
#
492
#
462
# Description     : Determine the base directory of the package
493
# Description     : Determine the base directory of the package
463
#
494
#
464
# Inputs          : $self                   - Class Ref
495
# Inputs          : $self                   - Class Ref