| 1 | package aker; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | use Perl::Maker; | ||
| 6 | |||
| 7 | sub import { | ||
| 8 | my $spec_file = shift || 'perl-spec.yaml'; | ||
| 9 | Perl::Maker->new( | ||
| 10 | spec_file => $spec_file, | ||
| 11 | )->write_makefile; | ||
| 12 | } | ||
| 13 | |||
| 14 | 1; | ||
| 15 | |||
| 16 | =encoding utf8 | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | aker - Support Modules for 'perl -Maker' | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | > perl -Maker | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This is the sugar module for Perl Maker. Instead of writing: | ||
| 29 | |||
| 30 | perl -MPerl::Maker -e 'Perl::Maker->new(spec_file => 'perl-spec.yaml')->write_makefile' | ||
| 31 | |||
| 32 | You can just write: | ||
| 33 | |||
| 34 | perl -Maker perl-spec.yaml | ||
| 35 | |||
| 36 | Or simply: | ||
| 37 | |||
| 38 | perl -Maker | ||
| 39 | |||
| 40 | =head1 AUTHOR | ||
| 41 | |||
| 42 | Ingy döt Net <ingy@cpan.org> | ||
| 43 | |||
| 44 | =head1 COPYRIGHT | ||
| 45 | |||
| 46 | Copyright (c) 2011. Ingy döt Net. | ||
| 47 | |||
| 48 | This program is free software; you can redistribute it and/or modify it | ||
| 49 | under the same terms as Perl itself. | ||
| 50 | |||
| 51 | See http://www.perl.com/perl/misc/Artistic.html | ||
| 52 | |||
| 53 | =cut |