Mercurial > hg > octave-terminal
changeset 14513:3313635c622d
Remove calls to deleted function split_by.
* scripts/pkg/private/configure_make.m: Replace split_by
with strtrim (strsplit ())
* scripts/pkg/private/write_index.m: Replace split_by
with strtrim (strsplit ())
* scripts/pkg/private/unload_packages.m: Replace split_by
with strtrim (strsplit ())
author | Carlo de Falco <cdf@users.sourceforge.net> |
---|---|
date | Sat, 31 Mar 2012 16:20:09 +0200 |
parents | e0d66b8b0c63 |
children | 34a9fdaa6ea3 |
files | scripts/pkg/private/configure_make.m scripts/pkg/private/unload_packages.m scripts/pkg/private/write_index.m |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/pkg/private/configure_make.m +++ b/scripts/pkg/private/configure_make.m @@ -91,7 +91,7 @@ if (filenames(end) == "\n") filenames(end) = []; endif - filenames = split_by (filenames, "\n"); + filenames = strtrim (strsplit (filenames, "\n")); delete_idx = []; for i = 1:length (filenames) if (! all (isspace (filenames{i})))
--- a/scripts/pkg/private/unload_packages.m +++ b/scripts/pkg/private/unload_packages.m @@ -35,7 +35,7 @@ endfor ## Get the current octave path. - p = split_by (path(), pathsep ()); + p = strtrim (strsplit (path(), pathsep ())); if (length (files) == 1 && strcmp (files{1}, "all")) ## Unload all.
--- a/scripts/pkg/private/write_index.m +++ b/scripts/pkg/private/write_index.m @@ -74,7 +74,7 @@ if (! isfield (desc, "categories")) error ("the DESCRIPTION file must have a Categories field, when no INDEX file is given"); endif - categories = split_by (desc.categories, ","); + categories = strtrim (strsplit (desc.categories, ",")); if (length (categories) < 1) error ("the Category field is empty"); endif