On towards new version
[Config-Perl-V.git] / sandbox / genMETA.pl
blob7e14b06dadd1eec11dd89794e09438816b114b2b
1 #!/pro/bin/perl
3 use strict;
4 use warnings;
6 use Getopt::Long qw(:config bundling nopermute);
7 my $check = 0;
8 my $opt_v = 0;
9 GetOptions (
10 "c|check" => \$check,
11 "v|verbose:1" => \$opt_v,
12 ) or die "usage: $0 [--check]\n";
14 use lib "sandbox";
15 use genMETA;
16 my $meta = genMETA->new (
17 from => "V.pm",
18 verbose => $opt_v,
21 $meta->from_data (<DATA>);
23 if ($check) {
24 $meta->check_encoding ();
25 $meta->check_required ();
26 $meta->check_minimum ();
27 $meta->done_testing ();
29 elsif ($opt_v) {
30 $meta->print_yaml ();
32 else {
33 $meta->fix_meta ();
36 __END__
37 --- #YAML:1.0
38 name: Config-Perl-V
39 version: VERSION
40 abstract: Structured data retrieval of perl -V output
41 license: perl
42 author:
43 - H.Merijn Brand <h.m.brand@xs4all.nl>
44 generated_by: Author
45 distribution_type: module
46 provides:
47 Config::Perl::V:
48 file: V.pm
49 version: VERSION
50 requires:
51 perl: 5.006
52 Config: 0
53 recommends:
54 perl: 5.020000
55 configure_requires:
56 ExtUtils::MakeMaker: 0
57 build_requires:
58 perl: 5.006
59 test_requires:
60 Test::More: 0
61 Test::NoWarnings: 0
62 resources:
63 license: http://dev.perl.org/licenses/
64 repository: http://repo.or.cz/w/Config-Perl-V.git
65 meta-spec:
66 version: 1.4
67 url: http://module-build.sourceforge.net/META-spec-v1.4.html