BUG: Fixed directory creation for spaces in install path.

This commit is contained in:
Brad King 2003-01-20 18:52:08 -05:00
parent c4fa5d1fdf
commit 594bc7f22b
1 changed files with 8 additions and 8 deletions

View File

@ -2060,14 +2060,14 @@ void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
if (l->second.GetInstallPath() != "") if (l->second.GetInstallPath() != "")
{ {
// first make the directories for each target // first make the directories for each target
fout << "\t@if [ ! -d \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() << fout << "\t@if [ ! -d \"$(DESTDIR)" << prefix << l->second.GetInstallPath() <<
" ] ; then \\\n"; "\"] ; then \\\n";
fout << "\t echo \"Making directory \"$(DESTDIR)\"" << prefix fout << "\t echo \"Making directory \\\"$(DESTDIR)" << prefix
<< l->second.GetInstallPath() << " \"; \\\n"; << l->second.GetInstallPath() << "\\\" \"; \\\n";
fout << "\t mkdir -p \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
<< "; \\\n"; << "\"; \\\n";
fout << "\t chmod 755 \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() fout << "\t chmod 755 \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
<< "; \\\n"; << "\"; \\\n";
fout << "\t else true; \\\n"; fout << "\t else true; \\\n";
fout << "\t fi\n"; fout << "\t fi\n";
std::string fname; std::string fname;