Skip to content

Commit

Permalink
Added META.yml, Makefile.PL, and MANIFEST.SKIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Aug 26, 2003
1 parent 14a9e26 commit 9938d1f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MANIFEST.SKIP
@@ -0,0 +1,7 @@
^_build
^Build$
^blib
~$
\.bak$
^MANIFEST\.SKIP$
CVS
14 changes: 14 additions & 0 deletions META.yml
@@ -0,0 +1,14 @@
--- #YAML:1.0
name: Data-Types
version: 0.05
license: perl
distribution_type: module
requires: {}
recommends: {}
build_requires: {}
conflicts: {}
provides:
Data::Types:
file: lib/Data/Types.pm
version: 0.05
generated_by: Module::Build version 0.19_05
28 changes: 28 additions & 0 deletions Makefile.PL
@@ -0,0 +1,28 @@

unless (eval "use Module::Build::Compat 0.02; 1" ) {
print "This module requires Module::Build to install itself.\n";

require ExtUtils::MakeMaker;
my $yn = ExtUtils::MakeMaker::prompt
(' Install Module::Build now from CPAN?', 'y');

unless ($yn =~ /^y/i) {
warn " *** Cannot install without Module::Build. Exiting ...\n";
exit 1;
}

require Cwd;
require File::Spec;
require CPAN;

# Save this 'cause CPAN will chdir all over the place.
my $cwd = Cwd::cwd();
my $makefile = File::Spec->rel2abs($0);

CPAN::Shell->install('Module::Build::Compat');

chdir $cwd or die "Cannot chdir() back to $cwd: $!";
exec $^X, $makefile, @ARGV; # Redo now that we have Module::Build
}
Module::Build::Compat->run_build_pl(args => \@ARGV);
Module::Build::Compat->write_makefile();

0 comments on commit 9938d1f

Please sign in to comment.