diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-10 19:51:26 -0400 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-10 19:51:26 -0400 |
commit | 4ed167090ea412607ba128a4a5f61199c426b3a6 (patch) | |
tree | fcfc6329d885b548b6c921e96c9332f72b67d386 /Source/cmGlobalKdevelopGenerator.cxx | |
parent | e3e6b02096da519c9dcbd2869ddba24b151298c9 (diff) | |
download | cmake-4ed167090ea412607ba128a4a5f61199c426b3a6.tar.gz |
ENH: enable cvs or svn support if the source has the CVS/.svn subdirs
Alex
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r-- | Source/cmGlobalKdevelopGenerator.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx index 5d58e12fcf..69826e0f86 100644 --- a/Source/cmGlobalKdevelopGenerator.cxx +++ b/Source/cmGlobalKdevelopGenerator.cxx @@ -385,6 +385,10 @@ void cmGlobalKdevelopGenerator return; } + // check for a version control system + bool hasSvn = cmSystemTools::FileExists((projectDir + "/.svn").c_str()); + bool hasCvs = cmSystemTools::FileExists((projectDir + "/CVS").c_str()); + fout<<"<?xml version = '1.0'?>\n"; fout<<"<kdevelop>\n"; fout<<" <general>\n"; @@ -400,6 +404,16 @@ void cmGlobalKdevelopGenerator fout<<" <secondaryLanguages>\n"; fout<<" <language>C</language>\n"; fout<<" </secondaryLanguages>\n"; + + if (hasSvn) + { + fout << " <versioncontrol>kdevsubversion</versioncontrol>\n"; + } + else if (hasCvs) + { + fout << " <versioncontrol>kdevcvsservice</versioncontrol>\n"; + } + fout<<" </general>\n"; fout<<" <kdevcustomproject>\n"; fout<<" <filelistdirectory>"<<outputDir.c_str() |