Skip to content

Commit

Permalink
move files to inc/ to avoid indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Jan 25, 2012
1 parent 02fe5cb commit a2d1c9d
Show file tree
Hide file tree
Showing 67 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Data.PL
@@ -1,17 +1,19 @@
# Build Module::CoreList::Data
package Module::CoreList; # pretend this for plugins
package Module::CoreList; # fake this to find plugins
use strict;
use warnings;
use autodie;
use Data::Dumper;
use File::Basename qw/dirname/;
use File::Path qw/mkpath/;
use File::Spec;
use IO::Compress::Gzip qw/gzip/;

use lib 'data';
use vars qw/%released %version %families %upstream %bug_tracker %deprecated/;

use lib 'inc/data';
use Module::Pluggable
search_path => 'Module::CoreList',
search_dir => 'data',
only => qr/^Module::CoreList::Perl\d+$/,
require => 1;

Expand Down Expand Up @@ -1098,7 +1100,9 @@ my $dumped = Data::Dumper->Dump([$data], ['data']);
gzip \$dumped => \(my $zipped);
my $uu = pack ("u", $zipped);

open my $fh, ">", shift @ARGV;
my $pm_file = File::Spec->catfile('blib',shift @ARGV);
mkpath dirname($pm_file);
open my $fh, ">", $pm_file;
print {$fh} <<"HERE";
# Do not edit this file directly, it is generated by Data.PL
package Module::CoreList::Data;
Expand Down
4 changes: 3 additions & 1 deletion Makefile.PL
Expand Up @@ -11,8 +11,10 @@ WriteMakefile
'Test::More' => '0',
'Module::Pluggable' => 0,
},
'PL_FILES' => {
'Data.PL' => 'lib/Module/CoreList/Data.pm',
},
'EXE_FILES' => [ 'corelist' ],
'PL_FILES' => { 'Data.PL' => 'lib/Module/CoreList/Data.pm' },
LICENSE => 'perl',
@extra,
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a2d1c9d

Please sign in to comment.