| 1 | #line 1 | ||||||||||
| 2 | package Module::Install::WriteAll; | ||||||||||
| 3 | 2 | ▶ | |||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | use Module::Install::Base (); | ||||||||||
| 6 | 2 | ▶ | |||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use vars qw{$VERSION @ISA $ISCORE}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | BEGIN { | |||||||||
| 9 | 2 | $VERSION = '1.19'; | |||||||||
| 10 | 2 | @ISA = qw{Module::Install::Base}; | |||||||||
| 11 | $ISCORE = 1; | ||||||||||
| 12 | } | ||||||||||
| 13 | 2 | ▶ | |||||||||
|
Subroutine
WriteAll: called CC=11 SCAR=30.5
Pod
undocumented
| |||||||||||
| 14 | 2 | sub WriteAll { | |||||||||
| 15 | 2 | my $self = shift; | |||||||||
| 16 | my %args = ( | ||||||||||
| 17 | meta => 1, | ||||||||||
| 18 | sign => 0, | ||||||||||
| 19 | inline => 0, | ||||||||||
| 20 | check_nmake => 1, | ||||||||||
| 21 | @_, | ||||||||||
| 22 | ); | ||||||||||
| 23 | 2 | ▶ | |||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 2 | ▶ | $self->sign(1) if $args{sign}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | $self->admin->WriteAll(%args) if $self->is_admin; | ||||||||||
| 26 | 2 | ▶ | |||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 2 | ▶ | $self->check_nmake if $args{check_nmake}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | unless ( $self->makemaker_args->{PL_FILES} ) { | ||||||||||
| 29 | 2 | ▶ | # XXX: This still may be a bit over-defensive... | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | ▶ | unless ($self->makemaker(6.25)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | $self->makemaker_args( PL_FILES => {} ) if -f 'Build.PL'; | ||||||||||
| 32 | } | ||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | # Until ExtUtils::MakeMaker support MYMETA.yml, make sure | ||||||||||
| 36 | 2 | # we clean it up properly ourself. | |||||||||
| 37 | $self->realclean_files('MYMETA.yml'); | ||||||||||
| 38 | 2 | ▶ | |||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | 0 | if ( $args{inline} ) { | |||||||||
| 40 | $self->Inline->write; | ||||||||||
| 41 | 2 | } else { | |||||||||
| 42 | $self->Makefile->write; | ||||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | # The Makefile write process adds a couple of dependencies, | ||||||||||
| 46 | 2 | ▶ | # so write the META.yml files after the Makefile. | ||||||||
|
Branch: 1 branch
| |||||||||||
| 47 | 2 | if ( $args{meta} ) { | |||||||||
| 48 | $self->Meta->write; | ||||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | 2 | ▶ | # Experimental support for MYMETA | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | ▶ | if ( $ENV{X_MYMETA} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 53 | 0 | if ( $ENV{X_MYMETA} eq 'JSON' ) { | |||||||||
| 54 | $self->Meta->write_mymeta_json; | ||||||||||
| 55 | 0 | } else { | |||||||||
| 56 | $self->Meta->write_mymeta_yaml; | ||||||||||
| 57 | } | ||||||||||
| 58 | } | ||||||||||
| 59 | 2 | ||||||||||
| 60 | return 1; | ||||||||||
| 61 | } | ||||||||||
| 62 | 2 | ||||||||||
| 63 | 1; | ||||||||||