From 594bc7f22bfb314af9dc16bf1700179077aec5d0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 20 Jan 2003 18:52:08 -0500 Subject: [PATCH] BUG: Fixed directory creation for spaces in install path. --- Source/cmLocalUnixMakefileGenerator.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 781064eab..5e9f8e66d 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2060,14 +2060,14 @@ void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout) if (l->second.GetInstallPath() != "") { // first make the directories for each target - fout << "\t@if [ ! -d \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() << - " ] ; then \\\n"; - fout << "\t echo \"Making directory \"$(DESTDIR)\"" << prefix - << l->second.GetInstallPath() << " \"; \\\n"; - fout << "\t mkdir -p \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() - << "; \\\n"; - fout << "\t chmod 755 \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() - << "; \\\n"; + fout << "\t@if [ ! -d \"$(DESTDIR)" << prefix << l->second.GetInstallPath() << + "\"] ; then \\\n"; + fout << "\t echo \"Making directory \\\"$(DESTDIR)" << prefix + << l->second.GetInstallPath() << "\\\" \"; \\\n"; + fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath() + << "\"; \\\n"; + fout << "\t chmod 755 \"$(DESTDIR)" << prefix << l->second.GetInstallPath() + << "\"; \\\n"; fout << "\t else true; \\\n"; fout << "\t fi\n"; std::string fname;