LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: brian d foy Date: Fri Sep 19 15:06:06 2008 Subject: Re: cpan commandline script
On Thu, Sep 18, 2008 at 3:50 PM, Tina Müller <post@tinita.de> wrote: > Hi Brian, > > On Wed, 17 Sep 2008, brian d foy wrote: > >> Also, since you want the feature, you have to be a tester. :) > > of course =) I'm moving this over to cpan-workers@perl.org so anyone can read the thread and it shows up in google, etc. > Andreas showed me today how to convince CPAN::Shell to use a different > directory. You call > perl -I ~/.mycpan -MCPAN/MyConfig.pm -MCPAN -e shell > (after creating an almost empty ~/.mycpan/CPAN/MyConfig.pm). This is basically what the new -j switch to cpan does, although it doesn't try to figure out if the configuration you load is valid yet. In the git repo (http://github.com/briandfoy/cpan-script/tree/app) I'm currently working in the app branch because I'm moving it to the App::Cpan set-up and I'm working on the test suite. The script mostly works as far as I can tell because I've been using it even while it is in development. Try this (after make, etc) in the dev dir: # dump the current config $ perl -Mblib script/cpan -J > MyConf.pm # change then load the current config # it should dump you into the shell, or you can give it some other command $ perl -Mblib script/cpan -j MyConf.pm # load and dump, to see if it all worked. $ perl -Mblib script/cpan -j MyConf.pm -J -- brian d foy <brian.d.foy@gmail.com> http://www.pair.com/~comdog/
| Navigate in group perl.cpan.workers at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |