Mercurial > hg > octave-nkf
diff scripts/pkg/pkg.m @ 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 | 30d15ab0ce01 |
children | ea9b5f31bfac |
line wrap: on
line diff
--- 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);