summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalKdevelopGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-10 23:51:26 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-10 23:51:26 (GMT)
commit4ed167090ea412607ba128a4a5f61199c426b3a6 (patch)
treefcfc6329d885b548b6c921e96c9332f72b67d386 /Source/cmGlobalKdevelopGenerator.cxx
parente3e6b02096da519c9dcbd2869ddba24b151298c9 (diff)
downloadCMake-4ed167090ea412607ba128a4a5f61199c426b3a6.zip
CMake-4ed167090ea412607ba128a4a5f61199c426b3a6.tar.gz
CMake-4ed167090ea412607ba128a4a5f61199c426b3a6.tar.bz2
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.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx
index 5d58e12..69826e0 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()