# HG changeset patch # User John W. Eaton # Date 1222974028 14400 # Node ID ea9b5f31bfac5167cf87a6a4a784deb21f0e1209 # Parent 7d1a8ad7d841c65f47cd0b7a7ce051f73faba77c pkg.m: better handling of filenames with spaces diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-02 John W. Eaton + + * pkg/pkg.m (configure_make): Handle filenames with spaces.: + 2008-10-02 Benjamin Lindner * pkg.m (configure_make): Enclose building directory in quotes. diff --git a/scripts/pkg/pkg.m b/scripts/pkg/pkg.m --- 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