Mercurial > hg > octave-lyh
changeset 8174:ea9b5f31bfac
pkg.m: better handling of filenames with spaces
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Oct 2008 15:00:28 -0400 |
parents | 7d1a8ad7d841 |
children | 977d5204cf67 |
files | scripts/ChangeLog scripts/pkg/pkg.m |
diffstat | 2 files changed, 8 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-02 John W. Eaton <jwe@octave.org> + + * pkg/pkg.m (configure_make): Handle filenames with spaces.: + 2008-10-02 Benjamin Lindner <lindnerb@users.sourceforge.net> * pkg.m (configure_make): Enclose building directory in quotes.
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -1281,21 +1281,10 @@ m = dir (fullfile (src, "*.m")); oct = dir (fullfile (src, "*.oct")); mex = dir (fullfile (src, "*.mex")); - archdependent = ""; - archindependent = ""; - filenames = ""; - if (length (m) > 0) - filenames = sprintf (fullfile (src, "%s "), m.name); - endif - if (length (oct) > 0) - filenames = cstrcat (filenames, " ", - sprintf (fullfile (src, "%s "), oct.name)); - endif - if (length (mex) > 0) - filenames = cstrcat (filenames, " ", - sprintf (fullfile (src, "%s "), mex.name)); - endif - filenames = split_by (filenames, " "); + + filenames = cellfun (@(x) fullfile (src, x), + {m.name, oct.name, mex.name}, + "UniformOutput", false); endif ## Split into architecture dependent and independent files