Quote echo

This commit is contained in:
Berk Geveci 2002-01-14 16:02:05 -05:00
parent 5adda3463a
commit c88408141b
1 changed files with 4 additions and 4 deletions

View File

@ -1875,7 +1875,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
if(replace[0] != '-' && replace.find("echo") != 0 if(replace[0] != '-' && replace.find("echo") != 0
&& replace.find("$(MAKE)") != 0) && replace.find("$(MAKE)") != 0)
{ {
fout << "\t" << "echo " << replace.c_str() << "\n"; fout << "\t" << "echo \"" << replace.c_str() << "\"\n";
} }
fout << "\t" << replace.c_str() << "\n"; fout << "\t" << replace.c_str() << "\n";
} }
@ -1886,7 +1886,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
if(replace[0] != '-' && replace.find("echo") != 0 if(replace[0] != '-' && replace.find("echo") != 0
&& replace.find("$(MAKE)") != 0) && replace.find("$(MAKE)") != 0)
{ {
fout << "\t" << "echo " << replace.c_str() << "\n"; fout << "\t" << "echo \"" << replace.c_str() << "\"\n";
} }
fout << "\t" << replace.c_str() << "\n"; fout << "\t" << replace.c_str() << "\n";
} }
@ -1897,7 +1897,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
if(replace[0] != '-' && replace.find("echo") != 0 if(replace[0] != '-' && replace.find("echo") != 0
&& replace.find("$(MAKE)") != 0) && replace.find("$(MAKE)") != 0)
{ {
fout << "\t" << "echo " << replace.c_str() << "\n"; fout << "\t" << "echo \"" << replace.c_str() << "\"\n";
} }
fout << "\t" << replace.c_str() << "\n"; fout << "\t" << replace.c_str() << "\n";
} }
@ -1908,7 +1908,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
if(replace[0] != '-' && replace.find("echo") != 0 if(replace[0] != '-' && replace.find("echo") != 0
&& replace.find("$(MAKE)") != 0) && replace.find("$(MAKE)") != 0)
{ {
fout << "\t" << "echo " << replace.c_str() << "\n"; fout << "\t" << "echo \"" << replace.c_str() << "\"\n";
} }
fout << "\t" << replace.c_str() << "\n"; fout << "\t" << replace.c_str() << "\n";
} }