Versions
[Data-Peek.git] / sandbox / genMETA.pl
blob9bbbda609844b11571b70c4872dffda65c47014f
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 => "Peek.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 ([ "examples" ]);
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: Data-Peek
39 version: VERSION
40 abstract: Modified and extended debugging facilities
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 Data::Peek:
48 file: Peek.pm
49 version: VERSION
50 requires:
51 perl: 5.008
52 DynaLoader: 0
53 Data::Dumper: 0
54 configure_requires:
55 ExtUtils::MakeMaker: 0
56 build_requires:
57 perl: 5.008
58 test_requires:
59 Test::More: 0.88
60 Test::NoWarnings: 0
61 recommends:
62 perl: 5.020001
63 Data::Dumper: 2.154
64 Perl::Tidy: 0
65 test_recommends:
66 Test::More: 1.001006
67 resources:
68 license: http://dev.perl.org/licenses/
69 repository: http://repo.or.cz/w/Data-Peek.git
70 IRC: irc://irc.perl.org/#csv
71 meta-spec:
72 version: 1.4
73 url: http://module-build.sourceforge.net/META-spec-v1.4.html