Mercurial > hg > octave-lojdl
changeset 7739:ca9bfe159144
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 | 86eb9dd6ce61 |
children | 39930366b709 |
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"))