in reply to ExtUtils::ModuleMaker
If you add
to the arguments to Generate_Module_Files it produces the directory "Foo-Bar" instead of "Foo/Bar", which apparently is what you want to make it easier to make for instance a CPAN distribution (see link below).compact => 1,
It still doesn't add the version number, as recommended in the excellent How to make a CPAN Module Distribution, but now it is much easier to do that too. The following lines, added to your script (together with the "compact" argument) takes care of this:
Just so we all can be even more lazy... :)my $dir_name = $module_name; $dir_name =~ s/::/-/g; print STDERR "renaming '$dir_name' to '$dir_name-$version'\n"; rename $dir_name, "$dir_name-$version" or warn "Could not rename '$dir_name' to '$dir_name-$version': $!" +;
Note that you must upgrade ExtUtils::ModuleMaker to a newer version for this to work, I am using version 0.204, while whatever the last one I had was, did not have the compact parameter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ExtUtils::ModuleMaker
by ignatz (Vicar) on Jul 21, 2002 at 15:44 UTC | |
by dragonchild (Archbishop) on Oct 10, 2003 at 19:30 UTC | |
by mpd (Monk) on Aug 18, 2003 at 03:11 UTC |