better permission handling

This commit is contained in:
Ken Martin 2001-06-21 15:54:39 -04:00
parent cf82992964
commit 807b5ba5c1

View File

@ -1025,10 +1025,10 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
{
fout << "\t@ echo \"Installing " << *i << " \"\n";
fout << "\t@if [ -e " << *i << " ] ; then \\\n";
fout << "\t $(INSTALL_DATA) " << *i
fout << "\t $(INSTALL) " << *i
<< " " << prefix << l->second.GetInstallPath() << "; \\\n";
fout << "\t elif [ -e ${srcdir}/" << *i << " ] ; then \\\n";
fout << "\t $(INSTALL_DATA) ${srcdir}/" << *i
fout << "\t $(INSTALL) ${srcdir}/" << *i
<< " " << prefix << l->second.GetInstallPath() << "; \\\n";
fout << "\telse \\\n";
fout << "\t echo \" ERROR!!! Unable to find: " << *i