comparison scripts/pkg/pkg.m @ 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 d6e63a15cc75
children 30d15ab0ce01
comparison
equal deleted inserted replaced
7738:86eb9dd6ce61 7739:ca9bfe159144
246 verbose = true; 246 verbose = true;
247 case "-local" 247 case "-local"
248 global_install = false; 248 global_install = false;
249 if (! user_prefix) 249 if (! user_prefix)
250 prefix = tilde_expand (fullfile ("~", "octave")); 250 prefix = tilde_expand (fullfile ("~", "octave"));
251 archprefix = prefix;
251 endif 252 endif
252 case "-global" 253 case "-global"
253 global_install = true; 254 global_install = true;
254 if (! user_prefix) 255 if (! user_prefix)
255 prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages"); 256 prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages");
257 archprefix = fullfile (octave_config_info ("libexecdir"),
258 "octave", "packages");
256 endif 259 endif
257 case available_actions 260 case available_actions
258 if (strcmp (action, "none")) 261 if (strcmp (action, "none"))
259 action = varargin{i}; 262 action = varargin{i};
260 else 263 else