Thanks for your help, Søren.

addpath(fullfile (fileparts (mfilename ("fullpath")), "control"));
addpath(fullfile (fileparts (mfilename ("fullpath")), "ocst"));
seems to work when I add the PKG_ADD file manually to inst/ after  
installation.

Therefore, I put the PKG-ADD file in
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/control-oo/inst/

However, after downloading the tarball and using "pkg install",  
PKG_ADD is not in place. Do you know how to fix this?

Regards,
Lukas

> man, 19 10 2009 kl. 18:10 +0200, skrev Lukas Reichlin:
>> The "pkg install" command should add the following directories to the
>> path:
>> inst/
>> inst/control
>> inst/ocst
>>
>> but it should not add the @* directories in inst/
>> in order to load the package correctly when octave starts up.
>> Which commands do I need to achieve this?
>
> If you add a file 'inst/PKG_ADD' then this will be executed one your
> package is loaded. You can put commands in this file that will setup  
> the
> paths for you. You can add something like
>
> addpath (fullfile (pwd (), fileparts (mfilename ("fullpath")),
> "control"));
>
> but I'm sure there must be a more simple way.
>
> Søren
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to