changeset 8172:9ba45b125ee8

enclose building direcries in quotes in pkg.m
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Thu, 02 Oct 2008 13:25:57 -0400
parents 15ffb9836c01
children 7d1a8ad7d841
files scripts/ChangeLog scripts/pkg/pkg.m
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Oct 02 12:43:47 2008 -0400
+++ b/scripts/ChangeLog	Thu Oct 02 13:25:57 2008 -0400
@@ -1,3 +1,7 @@
+2008-10-02  Benjamin Lindner <lindnerb@users.sourceforge.net>
+
+	* pkg.m (configure_make): Enclose building directory in quotes.
+
 2008-10-02  Ben Abbott <bpabbott@mac.com>
 
 	* plot/__go_draw_axes__.m: Remove depdenence on gnuplot version..
--- a/scripts/pkg/pkg.m	Thu Oct 02 12:43:47 2008 -0400
+++ b/scripts/pkg/pkg.m	Thu Oct 02 13:25:57 2008 -0400
@@ -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);