# HG changeset patch # User Benjamin Lindner # Date 1222968357 14400 # Node ID 9ba45b125ee8ac596cda6748a372297079d142f0 # Parent 15ffb9836c01675586133963fd91d55926678c1d 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-10-02 Ben Abbott * plot/__go_draw_axes__.m: Remove depdenence on gnuplot version.. 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 = cstrcat (flags, " RANLIB=\"", octave_config_info ("RANLIB"), "\""); endif - [status, output] = shell (cstrcat ("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 (cstrcat ("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);