|
Hi,
I have a collection of Perl script and a few data files they rely on that I'd like to put in a CPAN-style package.
1. It's not really structured like a proper module. They're related scripts, but it's really just a collection of *.pl files in a /bin directory, and some *.xml files in a /share directory. Does it still make sense to bundle these in a CPAN-style package?
Here is what I've got for a Makefile.PL:
use strict;
use warnings;
use ExtUtils::MakeMaker;
my @exe_files = glob("bin/*");
WriteMakefile(
NAME => 'MyPackage',
DISTNAME => 'MyPackage',
AUTHOR => q{Andrew Wood <amherst.andrew@gmail.com>},
VERSION => '0.1',
ABSTRACT => 'My Perl Collection',
LICENSE => 'perl',
EXE_FILES => \@exe_files,
INSTALLBIN => 'bin',
PL_FILES => {},
PREREQ_PM => {},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'MyPackage-*' },
);
This, of course, doesn't work. I do get the executables copied over to a bin directory (though during the build they're in /script). I've been going through tutorials and having no luck. Everything seems to assume I'm going to want a lib/MyModule.pm, so I guess what I'm doing isn't standard.
Can someone give me a few tips, things to look at, or point me at your favourite tutorial for this sort of thing?
Thanks,
Andrew |