summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-01 16:49:12 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-01 16:49:12 (GMT)
commitb036f6e91de4da9cb5ac1e9946648fe31794565a (patch)
tree88152c3aacf90b2f0676a6ba8c4cfc35aded48a9
parent4228cd1ecf7438d8cdc8ae57d45aa1c0d66e2bb5 (diff)
downloadCMake-b036f6e91de4da9cb5ac1e9946648fe31794565a.zip
CMake-b036f6e91de4da9cb5ac1e9946648fe31794565a.tar.gz
CMake-b036f6e91de4da9cb5ac1e9946648fe31794565a.tar.bz2
ENH: Fix echo's to use @echo. This way verbose mode does not print twice: Bug #45 - add @ from echo commands
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 157e218..c28da66 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1679,7 +1679,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectoryWindows(std::ostream& fout
<< "$(MAKE) $(MAKESILENT) rebuild_cache\n";
if (!silent)
{
- fout << "\techo " << directory << ": building " << target1 << "\n";
+ fout << "\t@echo " << directory << ": building " << target1 << "\n";
}
fout << "\tcd " << dir << "\n"
<< "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target1 << "\n";
@@ -1688,7 +1688,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectoryWindows(std::ostream& fout
{
if (!silent)
{
- fout << "\techo " << directory << ": building " << target2 << "\n";
+ fout << "\t@echo " << directory << ": building " << target2 << "\n";
}
fout << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target2 << "\n";
}
@@ -1716,7 +1716,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectory(std::ostream& fout,
<< "; then $(MAKE) rebuild_cache; fi\n";
if (!silent)
{
- fout << "\techo " << directory << ": building " << target1 << "\n";
+ fout << "\t@echo " << directory << ": building " << target1 << "\n";
}
fout << "\t@cd " << directory
<< "; $(MAKE) " << target1 << "\n";
@@ -1725,7 +1725,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectory(std::ostream& fout,
{
if (!silent)
{
- fout << "\techo " << directory << ": building " << target2 << "\n";
+ fout << "\t@echo " << directory << ": building " << target2 << "\n";
}
fout << "\t@cd " << directory
<< "; $(MAKE) " << target2 << "\n";
@@ -2134,7 +2134,7 @@ void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
// 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
+ fout << "\t @echo \"Making directory \\\"$(DESTDIR)" << prefix
<< l->second.GetInstallPath() << "\\\" \"; \\\n";
fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
<< "\"; \\\n";
@@ -2742,13 +2742,13 @@ void cmLocalUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
{
cmSystemTools::ReplaceString(echostring, "\\\n", " ");
cmSystemTools::ReplaceString(echostring, " \t", " ");
- cmSystemTools::ReplaceString(echostring, "\n\t", "\"\n\techo \"");
- fout << "\techo \"" << echostring.c_str() << "\"\n";
+ cmSystemTools::ReplaceString(echostring, "\n\t", "\"\n\t@echo \"");
+ fout << "\t@echo \"" << echostring.c_str() << "\"\n";
}
else
{
- cmSystemTools::ReplaceString(echostring, "\n\t", "\n\techo ");
- fout << "\techo " << echostring.c_str() << "\n";
+ cmSystemTools::ReplaceString(echostring, "\n\t", "\n\t@echo ");
+ fout << "\t@echo " << echostring.c_str() << "\n";
}
}
fout << "\t" << replace.c_str() << "\n";