ADAMK-Release
view release on metacpan or search on metacpan
lib/ADAMK/Release.pm view on Meta::CPAN
sub dist_dir {
curdir();
}
sub dist_tardist {
$_[0]->dist_file;
}
sub dist_file {
$_[0]->dist . '-' . $_[0]->dist_version . '.tar.gz';
}
sub dist_version {
$_[0]->module_version;
}
sub dist_makefile_pl {
'Makefile.PL';
}
sub dist_build_pl {
'Build.PL';
}
sub dist_changes {
'Changes';
}
sub dist_license {
'LICENSE';
}
sub dist_readme {
'README';
}
sub dist_meta_yml {
'META.yml';
}
sub dist_manifest {
'MANIFEST';
}
sub dist_manifest_skip {
'MANIFEST.SKIP';
}
sub dist_manifest_add {
'MANIFEST.SKIP.add';
}
sub dist_ppport {
'ppport.h';
}
sub dist_t {
't';
}
sub dist_data {
catdir('t', 'data');
}
sub dist_99_author {
catfile('t', '99_author.t');
}
sub dist_xt {
'xt';
}
sub module_pm {
catfile( 'lib', $_[0]->module_subpath ) . '.pm';
}
sub module_pod {
catfile( 'lib', $_[0]->module_subpath ) . '.pod';
}
sub module_subpath {
catdir( split /::/, $_[0]->module );
}
sub shared_manifest_skip {
catfile( $_[0]->shared_dir, 'MANIFEST.SKIP' );
}
sub shared_license {
catfile( $_[0]->shared_dir, 'LICENSE' );
}
sub shared_dir {
File::ShareDir::dist_dir('ADAMK-Release')
or $_[0]->error("Failed to find share directory");
}
######################################################################
# Support Methods
# Is a particular program installed, and where
sub which {
my $self = shift;
my $program = shift;
my ($location) = (`which $program`);
chomp $location;
unless ( $location ) {
$self->error("Can't find the required program '$program'. Please install it");
}
unless ( -r $location and -x $location ) {
$self->error("The required program '$program' is installed, but I do not have permission to read or execute it");
}
return $location;
}
sub copy {
my $self = shift;
my $from = shift;
my $to = shift;
( run in 0.571 second using v1.01-cache-2.11-cpan-39bf76dae61 )