> On Sun, Dec 14, 2003 at 01:17:49AM +0100, Marcus Holland-Moritz wrote:
> > Here's a first shot. The attached patch (against the latest repository
> > snapshot) adds a 'LICENSE' parameter to MakeMaker. It also tries to make
> > the metafile output a little more Module::Build-ish. I didn't add a
> > parameter for 'DISTRIBUTION_TYPE', since this is currently hardcoded
> > also in M::B.
> > 
> > As this is my first patch to MM, please let me know if I missed anything.
> 
> Looks good at first glance.  My only comment would be that it would
> be nice if the license warning could happen only as the META.yml is
> generated.  This will make MM forward compatible should we add more
> licenses, so if an older MM installs a module generated with a new license
> type it won't warn.

Sounds reasonable.

> That'll probably require moving the license check code into
> an ExtUtils::MM::Command function so the check can be done in the
> metafile target.

Updated patch attached. I also patched the C<oneliner> subs to add
a '--' at the end of the options list. This makes it possible for
oneliners to be passed arguments that start with dashes, which is
required e.g. on Win32 when doing:

    ECHO = $(PERLRUN) -l -e "print [EMAIL PROTECTED]" --
    [...]
    metafile :
            $(NOECHO) $(ECHO) "--- #YAML:1.0" > META_new.yml

This wouldn't work without the '--'.

-- Marcus

Attachment: mm_meta_license-2.diff
Description: Binary data

Reply via email to