in reply to How can I create a Bundle quickly and easily?
In general, this will be hard, since you would have to parse Perl to recognize all the statements where additional code is included (do, require, use, even open file and string eval are possible). ActiveState's PerlApp application has the same problem, and they need an "add this module" switch for you to add modules manually in the more pathological cases (dynamic require, e.g., in Tk).
It is hard to tell if you could do a quick-and-dirty hack for just your purposes. Depends both on your coding conventions, and on the install procedure you prefer (from CPAN automatically via CPAN shell, or from downloaded tarballs by a procedure that you wrote yourself (warning: there can be dependencies between modules, and you will have to handle them yourself)).
I would probably create a checklist of modules from the code relying on conventions (just use "use", etc.), build a CPAN bundle by first using autobundle and then tuning that by hand, create a checklist from that bundle, too, and diff both checklists. If there is something new, I will know and can handle it manually (just add to the bundle).
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How can I create a Bundle quickly and easily?
by snafu (Chaplain) on Jul 27, 2001 at 21:53 UTC | |
by clemburg (Curate) on Jul 30, 2001 at 12:25 UTC |