On 2010.11.3 9:13 PM, Bill Moseley wrote: > MakeMaker does not copy the .svn directories. But Module::Install::Catalyst > uses File::Copy::Recursive which just copies entire directories into blib.
I would consider that a bug in MI::Cat. It should either have its own list or make use of MM->libscan($path). You should report that to MI::Cat. Module::Install uses MakeMaker but it is its own thing that MakeMaker has no control over. > And it does that copy when running Makefile.PL, not at "make" time so, I > guess I can just prune them in Makefile.PL. I would also consider that a bug or at least a design flaw in MI::Cat. Makefile.PL should not be building things or copying stuff into blib. Pruning them in the Makefile.PL would seem to be the simplest work around. > I also notice .svn directories end up in blib with my "share" directories in > other distributions (I use File::ShareDir). After I run "make" the .svn > directories only end up in blib/lib/share/, not any other directories. File::ShareDir or its Module::Install component may have the same issue as MI::Cat. I would discuss that with them. > So, in that case I'd need some way to prune the .svn dirs after running make. The simplest work around for that is to write a postamble method that introduces your own additions to the pure_all target which is what runs with "make" and has pm_to_blib as a dependency. sub postamble { return <<'MAKE'; pure_all :: ...prune here... MAKE } -- Who invented the eponym?