lør, 10 05 2008 kl. 11:44 +0200, skrev Andrea D'Amore:
> On 10/mag/08, at 11:29, Søren Hauberg wrote:
>
> > There is no direct way of installing _all_ the packages at once.
> > However, you can easily loop over the files in the bundle once it is
> > unpacked, and install them one by one using 'pkg -global install
> > package_filename.tar.gz'.
>
> Rather than all packages at once I'd like a programmatic (compact) way
> of installing them,
> a loop over files is just what I tought.
> I'm trying with
> sudo octave -q -H --eval="pkg -global install <packagename>"
>
> Is there a straight install order that won't break dependencies?
Since you have Octave available, you might as well use that. So, how
about something like this (non-tested code):
dirs = dir;
for d = 3:length (dirs) # start from 3 to avoid '.' and '..'
packs = dir (dirs (d).name);
for p = 3:length (packs)
pkg ("install", fullfile (dirs (d).name, packs (p).name))
endfor
endfor
?
Søren
P.S. I'm CC'ing the Octave-Forge list, so everybody can follow...
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev