# HG changeset patch # User John W. Eaton # Date 1223630369 -7200 # Node ID cad9324e5d6ff3f321704df525f0e0dc1e935774 # Parent 73cd97eb1c3fa0e5d6e7df6b0cabfe0c6f1ec024 pkg.m: better handling of filenames with spaces diff -r 73cd97eb1c3f -r cad9324e5d6f scripts/ChangeLog --- a/scripts/ChangeLog Fri Oct 10 11:19:20 2008 +0200 +++ b/scripts/ChangeLog Fri Oct 10 11:19:29 2008 +0200 @@ -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 -r 73cd97eb1c3f -r cad9324e5d6f scripts/pkg/pkg.m --- a/scripts/pkg/pkg.m Fri Oct 10 11:19:20 2008 +0200 +++ b/scripts/pkg/pkg.m Fri Oct 10 11:19:29 2008 +0200 @@ -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 = strcat (filenames, " ", - sprintf (fullfile (src, "%s "), oct.name)); - endif - if (length (mex) > 0) - filenames = strcat (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