# HG changeset patch # User Carlo de Falco # Date 1333203609 -7200 # Node ID 3313635c622d3672ef58af075a1d879d13af0e37 # Parent e0d66b8b0c6312d6b592254565ae2ebc14fb00ad 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 ()) diff -r e0d66b8b0c63 -r 3313635c622d scripts/pkg/private/configure_make.m --- a/scripts/pkg/private/configure_make.m Fri Mar 30 16:40:03 2012 -0400 +++ b/scripts/pkg/private/configure_make.m Sat Mar 31 16:20:09 2012 +0200 @@ -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}))) diff -r e0d66b8b0c63 -r 3313635c622d scripts/pkg/private/unload_packages.m --- a/scripts/pkg/private/unload_packages.m Fri Mar 30 16:40:03 2012 -0400 +++ b/scripts/pkg/private/unload_packages.m Sat Mar 31 16:20:09 2012 +0200 @@ -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. diff -r e0d66b8b0c63 -r 3313635c622d scripts/pkg/private/write_index.m --- a/scripts/pkg/private/write_index.m Fri Mar 30 16:40:03 2012 -0400 +++ b/scripts/pkg/private/write_index.m Sat Mar 31 16:20:09 2012 +0200 @@ -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