From help-request at octave dot org Sun Mar 6 13:55:24 2005 Subject: Re: Installing .oct files. From: Paul Kienzle To: Muthu Cc: help at octave dot org Date: Sun, 6 Mar 2005 15:02:08 -0500 One strategy is using using octave-config: octave-config -p LOCALVEROCTFILEDIR I prefer to use octave itself since I often have multiple octave versions around: echo "disp(octave_config_info('localveroctfiledir'))" | $OCTAVE -qf In octave-forge/configure.base I define a helper function: dnl Evaluate an expression in octave dnl dnl OCTAVE_EVAL(expr,var) -> var=expr dnl AC_DEFUN(OCTAVE_EVAL, [AC_MSG_CHECKING([for $1 in Octave]) $2=`echo "disp($1)" | $OCTAVE -qf` AC_MSG_RESULT($$2) AC_SUBST($2) ]) so I could do: OCTAVE_EVAL(octave_config_info('localveroctfiledir')),install_path) [I don't because when I wrote the configure file octave did not yet have localveroctfiledir available.] Hope that helps, - Paul On Mar 6, 2005, at 10:50 AM, Muthu wrote: > [Sorry for the previous empty mail]. > > Hi folks! > > I want to know where I can put my .oct files > if Im making a package for working with > GNU Octave ? > > Is it /usr/libexec/octave/oct directory ? > Please help me. > > Cheers > Muthu. > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------