App-makedist

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

{
   "abstract" : "automake a distribution for upload to cpan",
   "author" : [
      "Magnus Woldrich <m@japh.se>"
   ],
   "dynamic_config" : 1,
   "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010",
   "license" : [
      "perl_5"
   ],
   "meta-spec" : {
      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",

META.yml  view on Meta::CPAN

---
abstract: 'automake a distribution for upload to cpan'
author:
  - 'Magnus Woldrich <m@japh.se>'
build_requires:
  ExtUtils::MakeMaker: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:

Makefile.PL  view on Meta::CPAN

            type       => 'git',
            url        => 'https://github.com/trapd00r/makedist.git',
            web        => 'https://github.com/trapd00r/makedist',
            bugtracker => 'https://github.com/trapd00r/makedist/issues',
      },
    },
  },

  NAME                         => q{App::makedist},
  AUTHOR                       => q{Magnus Woldrich <m@japh.se>},
  ABSTRACT                     => q{automake a distribution for upload to cpan},
  VERSION_FROM                 => q{bin/makedist},
  LICENSE                      => q{perl},
  EXE_FILES                    => [
    glob("bin/*"),
  ],
  PREREQ_PM                    => {
    'Term::ExtendedColor'      => '0',
    'File::LsColor'            => '0',
    'CPAN::Uploader'           => '0',
    'File::Basename'           => '0',

bin/makedist  view on Meta::CPAN


makedist - make cpan distribution

=head1 USAGE

    makedist [OPTIONS]

=head1 DESCRIPTION

makedist automates the process of creating a distribution to be
uploaded to CPAN.

The MANIFEST file is inspected for files to be included.

We make an attempt to extract the package name from any perl module
file found, and the package name must follow this convention:

    package File::LsColor;

If extraction fails, we use the basename of the current working
directory as a distribution name:

bin/makedist  view on Meta::CPAN


    # code to execute on success. A few examples are provided in the
    # configuration file.
    $command_on_success

The author uses the $command_on_success coderef like this:

    our $command_on_success = sub {
      copy();   # copy the dist to a local dir
      scp();    # scp the dist to a remote server
      upload(); # upload the dist to cpan
    }

An example configuration file is provided with this distribution.


=head1 OPTIONS

        --noconfig skip config file

    -v, --verbose explain what is being done

doc/makedist.conf  view on Meta::CPAN

my $pause_id      = '';
my $remote_host   = '';

#our $command_on_success = sub { scp(); };
our $command_on_success = sub { copy(); };


#our $command_on_succes = sub {
#  copy();   # copy the distribution tarball somewhere
#  scp();    # scp the distribution tarball somewhere
#  upload(); # upload the distribution to cpan
#}

sub scp { system('scp', $finished_product, $remote_host); }
sub copy {
  cp($finished_product, $cpan_dist_dir) or die "Copy failed: $!";
}

sub upload {
  system('cpan-upload', '-u', $pause_id, $finished_product);
}



( run in 1.873 second using v1.01-cache-2.11-cpan-b16cb0d3907 )