Mercurial > hg > octave-terminal
changeset 11766:1434a2687447 release-3-0-x
Set archprefix for -local and -global options to pkg
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 29 Apr 2008 03:37:06 -0400 |
parents | 9f1b322fe0a9 |
children | a584b4bdb5c6 |
files | scripts/ChangeLog scripts/pkg/pkg.m |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-04-29 David Bateman <dbateman@free.fr> + + pkg/pkg.m: Also set archprefix with the -local and -global options. + 2008-04-29 Jonathan Stickel <jjstickel@vcn.com> * statistics/distributions/tcdf.m, statistics/distributions/tinv.m:
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -248,11 +248,14 @@ global_install = false; if (! user_prefix) prefix = tilde_expand (fullfile ("~", "octave")); + archprefix = prefix; endif case "-global" global_install = true; if (! user_prefix) prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages"); + archprefix = fullfile (octave_config_info ("libexecdir"), + "octave", "packages"); endif case available_actions if (strcmp (action, "none"))