Skip to content

Commit

Permalink
minil migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Aug 22, 2014
1 parent 538b8c1 commit c9d4b05
Show file tree
Hide file tree
Showing 11 changed files with 653 additions and 114 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -14,3 +14,11 @@ MANIFEST
*.out
UNIVERSAL-DOES-*
*.bak
/UNIVERSAL-DOES-*
/.build
/_build_params
/Build
/Build.bat
!Build/
!META.json
!LICENSE
65 changes: 65 additions & 0 deletions Build.PL
@@ -0,0 +1,65 @@
# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================

use 5.008_001;

use strict;
use warnings;
use utf8;

use Module::Build;
use File::Basename;
use File::Spec;

my %args = (
license => 'perl',
dynamic_config => 0,

configure_requires => {
'Module::Build' => 0.38,
},

name => 'UNIVERSAL-DOES',
module_name => 'UNIVERSAL::DOES',
allow_pureperl => 0,

script_files => [glob('script/*'), glob('bin/*')],
c_source => [qw()],
PL_files => {},

test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
recursive_test_files => 1,


);
if (-d 'share') {
$args{share_dir} = 'share';
}

my $builder = Module::Build->subclass(
class => 'MyBuilder',
code => q{
sub ACTION_distmeta {
die "Do not run distmeta. Install Minilla and `minil install` instead.\n";
}
sub ACTION_installdeps {
die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n";
}
}
)->new(%args);
$builder->create_build_script();

use File::Copy;

print "cp META.json MYMETA.json\n";
copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!";

if (-f 'META.yml') {
print "cp META.yml MYMETA.yml\n";
copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!";
} else {
print "There is no META.yml... You may install this module from the repository...\n";
}

2 changes: 2 additions & 0 deletions Changes
@@ -1,5 +1,7 @@
Revision history for Perl extension UNIVERSAL::DOES

{{$NEXT}}

0.002 Sun Sep 6 11:12:50 2009
- No code changes
- Fix documentation
Expand Down

0 comments on commit c9d4b05

Please sign in to comment.