| 1 | package Module::Install::Admin::Compiler; | ||||||||||||
| 2 | |||||||||||||
| 3 | 46 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 46 | ▶ | use Module::Install::Base; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 46 | ▶ | use File::Remove (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 46 | ▶ | use Devel::PPPort (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 46 | ▶ | use vars qw{$VERSION @ISA}; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 46 | ▶ | BEGIN { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 46 | $VERSION = '1.21'; | |||||||||||
| 11 | 46 | @ISA = qw{Module::Install::Base}; | |||||||||||
| 12 | } | ||||||||||||
| 13 | |||||||||||||
| 14 | 1 | ▶ | sub ppport { | ||||||||||
|
Subroutine
ppport: called CC=4 SCAR=15.2
Pod
undocumented
| |||||||||||||
| 15 | 1 | my $self = shift; | |||||||||||
| 16 | 1 | ▶ | my $file = shift || 'ppport.h'; | ||||||||||
|
Condition50%1/2
shift() || 'ppport.h'
MC/DC0%0/1
shift() || 'ppport.h'
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 17 | 1 | ▶ | if ( -f $file ) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 18 | # Update the file to a newer version | ||||||||||||
| 19 | 0 | File::Remove::remove($file); | |||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | # Install the file (and remove on realclean) | ||||||||||||
| 23 | 1 | ▶ | Devel::PPPort::WriteFile( $file ) or die "Failed to write $file"; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 24 | 1 | $self->realclean_files( $file ); | |||||||||||
| 25 | } | ||||||||||||
| 26 | |||||||||||||
| 27 | 46 | 1; | |||||||||||