# HG changeset patch # User Benjamin Lindner # Date 1223630014 -7200 # Node ID 1ffc52012b4670c1d1c08356ce6f5b1ca7bdba0f # Parent db621daaafaf6b6a6f9c77c410d955c9c477a1ca enclose building direcries in quotes in pkg.m diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-02 Benjamin Lindner + + * pkg.m (configure_make): Enclose building directory in quotes. + 2008-09-29 Ben Abbott * polynomial/deconv.m: Fix row/col orientation & length of output. diff --git a/scripts/pkg/pkg.m b/scripts/pkg/pkg.m --- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -1228,7 +1228,7 @@ if (isempty (getenv ("RANLIB"))) flags = strcat (flags, " RANLIB=\"", octave_config_info ("RANLIB"), "\""); endif - [status, output] = shell (strcat ("cd ", src, "; ./configure --prefix=\"", + [status, output] = shell (strcat ("cd '", src, "'; ./configure --prefix=\"", desc.dir, "\"", flags)); if (status != 0) rm_rf (desc.dir); @@ -1242,7 +1242,7 @@ ## make if (exist (fullfile (src, "Makefile"), "file")) [status, output] = shell (strcat ("export INSTALLDIR=\"", desc.dir, - "\"; make -C ", src)); + "\"; make -C '", src, "'")); if (status != 0) rm_rf (desc.dir); error ("'make' returned the following error: %s", output);