summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-03 21:02:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-03 21:02:26 (GMT)
commit763791fc2726fd8d8b777c95a5a3554b10b1de95 (patch)
tree9cb017fe598fc7a2d0d1935c1d833d442ebe6b1e /Source/QtDialog
parent3cb2ba9e907b65190687a46972bcd1d69259b96c (diff)
downloadCMake-763791fc2726fd8d8b777c95a5a3554b10b1de95.zip
CMake-763791fc2726fd8d8b777c95a5a3554b10b1de95.tar.gz
CMake-763791fc2726fd8d8b777c95a5a3554b10b1de95.tar.bz2
ENH: do not link . and .. during install
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QMacInstallDialog.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/QtDialog/QMacInstallDialog.cxx b/Source/QtDialog/QMacInstallDialog.cxx
index 57ed845..28c2c1a 100644
--- a/Source/QtDialog/QMacInstallDialog.cxx
+++ b/Source/QtDialog/QMacInstallDialog.cxx
@@ -40,18 +40,22 @@ void QMacInstallDialog::DoInstall()
{
QFileInfo fileInfo = list.at(i);
std::string filename = fileInfo.fileName().toStdString();
+ if(filename.size() && filename[0] == '.')
+ {
+ continue;
+ }
std::string file = fileInfo.absoluteFilePath().toStdString();
std::string newName = installTo;
newName += "/";
newName += filename;
- std::cout << "ln -s [" << file << "] [";
- std::cout << newName << "]\n";
// Remove the old files
if(cmSystemTools::FileExists(newName.c_str()))
{
std::cout << "rm [" << newName << "]\n";
cmSystemTools::RemoveFile(newName.c_str());
}
+ std::cout << "ln -s [" << file << "] [";
+ std::cout << newName << "]\n";
cmSystemTools::CreateSymlink(file.c_str(),
newName.c_str());
}