Mercurial > hg > octave-nkf
diff scripts/pkg/pkg.m @ 6687:44ebfc8c4ff0
[project @ 2007-06-03 22:17:01 by dbateman]
author | dbateman |
---|---|
date | Sun, 03 Jun 2007 22:17:01 +0000 |
parents | a2f697dca2a4 |
children | c45431c845f3 |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -224,7 +224,11 @@ endif case {"list", "install", "uninstall", "load", "unload", ... "prefix", "local_list", "global_list", "rebuild", "build"} - action = varargin{i}; + if (strcmp (action,"none")) + action = varargin{i}; + else + error ("more than one action specified"); + endif otherwise files{end+1} = varargin{i}; endswitch @@ -877,7 +881,6 @@ endif tfile = strcat (pack.name, "-", pack.version, ".tar"); tar (tfile, pack.name); - unwind_protect_cleanup if (exist (pack.name, "dir"))