From 4ed167090ea412607ba128a4a5f61199c426b3a6 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 10 Jun 2007 19:51:26 -0400 Subject: [PATCH] ENH: enable cvs or svn support if the source has the CVS/.svn subdirs Alex --- Source/cmGlobalKdevelopGenerator.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx index 5d58e12fc..69826e0f8 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<<"\n"; fout<<"\n"; fout<<" \n"; @@ -400,6 +404,16 @@ void cmGlobalKdevelopGenerator fout<<" \n"; fout<<" C\n"; fout<<" \n"; + + if (hasSvn) + { + fout << " kdevsubversion\n"; + } + else if (hasCvs) + { + fout << " kdevcvsservice\n"; + } + fout<<" \n"; fout<<" \n"; fout<<" "<