[Cmake-commits] CMake branch, next, updated. v2.8.7-1942-g8bceb01

Eric Noulard eric.noulard at gmail.com
Tue Jan 3 12:04:29 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  8bceb01217b735dc924a251cab8ea7ece47eab29 (commit)
       via  5834fa9606e75539145c420364b786f8564b3c33 (commit)
       via  b147308ccf7ae7e6f784e12b07135da6a4b56aad (commit)
       via  f1a049a3109ff573ca67f464c6c002673e4222cb (commit)
       via  3ee0c49f9c5c3e187165d68dca9571cafcfba059 (commit)
      from  4f132efd7d7203a3b725af95a9d2c394386ae611 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8bceb01217b735dc924a251cab8ea7ece47eab29
commit 8bceb01217b735dc924a251cab8ea7ece47eab29
Merge: 4f132ef 5834fa9
Author:     Eric Noulard <eric.noulard at gmail.com>
AuthorDate: Tue Jan 3 12:04:24 2012 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Jan 3 12:04:24 2012 -0500

    Merge topic 'ImproveCPackDoc-revert' into next
    
    5834fa9 Revert "Document undocumented (but existing) cpack options (fix #0010134)"
    b147308 Revert "CPack begin the implementation of --help-command* and --help-variables*"
    f1a049a Revert "Update cmake bash completion file."
    3ee0c49 Revert "Avoid compiler warning concerning unused var"


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5834fa9606e75539145c420364b786f8564b3c33
commit 5834fa9606e75539145c420364b786f8564b3c33
Author:     Eric NOULARD <eric.noulard at gmail.com>
AuthorDate: Tue Jan 3 18:02:30 2012 +0100
Commit:     Eric NOULARD <eric.noulard at gmail.com>
CommitDate: Tue Jan 3 18:02:30 2012 +0100

    Revert "Document undocumented (but existing) cpack options (fix #0010134)"
    
    This reverts commit 893ac5c2116e497b2faa3a37df6f21b656978351.

diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 163f744..b1706e3 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -71,25 +71,6 @@ static const char * cmDocumentationOptions[][3] =
     {"--config <config file>", "Specify the config file.",
     "Specify the config file to use to create the package. By default "
       "CPackConfig.cmake in the current directory will be used." },
-    {"--verbose,-V","enable verbose output","Run cpack with verbose output."},
-    {"--debug","enable debug output (for CPack developers)",
-     "Run cpack with debug output (for CPack developers)."},
-    {"-P <package name>","override/define CPACK_PACKAGE_NAME",
-     "If the package name is not specified on cpack commmand line then"
-     "CPack.cmake defines it as CMAKE_PROJECT_NAME"},
-    {"-R <package version>","override/define CPACK_PACKAGE_VERSION",
-     "If version is not specified on cpack command line then"
-     "CPack.cmake defines it from CPACK_PACKAGE_VERSION_[MAJOR|MINOR|PATCH]"
-     "look into CPack.cmake for detail"},
-    {"-B <package directory>","override/define CPACK_PACKAGE_DIRECTORY",
-     "The directory where CPack will be doing its packaging work."
-     "The resulting package will be found there. Inside this directory"
-     "CPack creates '_CPack_Packages' sub-directory which is the"
-     "CPack temporary directory."},
-    {"--vendor <vendor name>","override/define CPACK_PACKAGE_VENDOR",
-     "If vendor is not specified on cpack command line "
-     "(or inside CMakeLists.txt) then"
-     "CPack.cmake defines it with a default value"},
     {0,0,0}
 };
 
@@ -459,10 +440,6 @@ int main (int argc, char *argv[])
       }
     }
 
-  /* In this case we are building the documentation object
-   * instance in order to create appropriate structure
-   * in order to satisfy the appropriate --help-xxx request
-   */
   if ( help )
     {
     doc.CheckOptions(argc, argv);

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b147308ccf7ae7e6f784e12b07135da6a4b56aad
commit b147308ccf7ae7e6f784e12b07135da6a4b56aad
Author:     Eric NOULARD <eric.noulard at gmail.com>
AuthorDate: Tue Jan 3 18:02:25 2012 +0100
Commit:     Eric NOULARD <eric.noulard at gmail.com>
CommitDate: Tue Jan 3 18:02:25 2012 +0100

    Revert "CPack begin the implementation of --help-command* and --help-variables*"
    
    This reverts commit 1e38d6dd306522a0d08355a6c7ef57293b46b5a6.

diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index a07cbb4..ba41d98 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -442,8 +442,6 @@ SET(CPACK_SRCS
   CPack/cmCPackTarBZip2Generator.cxx
   CPack/cmCPackTarCompressGenerator.cxx
   CPack/cmCPackZIPGenerator.cxx
-  CPack/cmCPackDocumentVariables.cxx
-  CPack/cmCPackDocumentMacros.cxx
   )
 
 IF(CYGWIN)
diff --git a/Source/CPack/cmCPackDocumentMacros.cxx b/Source/CPack/cmCPackDocumentMacros.cxx
deleted file mode 100644
index 0dd51a9..0000000
--- a/Source/CPack/cmCPackDocumentMacros.cxx
+++ /dev/null
@@ -1,78 +0,0 @@
-#include "cmCPackDocumentMacros.h"
-
-void cmCPackDocumentMacros::GetMacrosDocumentation(
-        std::vector<cmDocumentationEntry>& v)
-{
-    cmDocumentationEntry e("cpack_add_component",
-            "Describes a CPack installation component "
-            "named by the COMPONENT argument to a CMake INSTALL command.",
-            "       cpack_add_component(compname\n"
-            "                          [DISPLAY_NAME name]\n"
-            "                          [DESCRIPTION description]\n"
-            "                          [HIDDEN | REQUIRED | DISABLED ]\n"
-            "                          [GROUP group]\n"
-            "                          [DEPENDS comp1 comp2 ... ]\n"
-            "                          [INSTALL_TYPES type1 type2 ... ]\n"
-            "                          [DOWNLOADED]\n"
-            "                          [ARCHIVE_FILE filename])\n"
-            "\n"
-            "The cmake_add_component command describes an installation"
-            "component, which the user can opt to install or remove as part of"
-            " the graphical installation process. compname is the name of the "
-            "component, as provided to the COMPONENT argument of one or more "
-            "CMake INSTALL commands."
-            "\n"
-          "DISPLAY_NAME is the displayed name of the component, used in "
-          "graphical installers to display the component name. This value "
-          "can be any string."
-          "\n"
-          "DESCRIPTION is an extended description of the component, used in "
-          "graphical installers to give the user additional information about "
-          "the component. Descriptions can span multiple lines using \"\\n\" "
-          " as the line separator. Typically, these descriptions should be no "
-          "more than a few lines long."
-          "\n"
-          "HIDDEN indicates that this component will be hidden in the "
-          "graphical installer, so that the user cannot directly change "
-          "whether it is installed or not."
-          "\n"
-          "REQUIRED indicates that this component is required, and therefore "
-          "will always be installed. It will be visible in the graphical "
-          "installer, but it cannot be unselected. (Typically, required "
-          "components are shown greyed out)."
-          "\n"
-          "DISABLED indicates that this component should be disabled "
-          "(unselected) by default. The user is free to select this component "
-          "for installation, unless it is also HIDDEN."
-          "\n"
-          "DEPENDS lists the components on which this component depends. If "
-          "this component is selected, then each of the components listed "
-          "must also be selected. The dependency information is encoded "
-          "within the installer itself, so that users cannot install "
-          "inconsistent sets of components."
-          "\n"
-          "GROUP names the component group of which this component is a "
-          "part. If not provided, the component will be a standalone "
-          "component, not part of any component group. Component groups are "
-          "described with the cpack_add_component_group command, detailed"
-          "below."
-          "\n"
-          "INSTALL_TYPES lists the installation types of which this component "
-          "is a part. When one of these installations types is selected, this "
-          "component will automatically be selected. Installation types are"
-          "described with the cpack_add_install_type command, detailed below."
-          "\n"
-          "DOWNLOADED indicates that this component should be downloaded "
-          "on-the-fly by the installer, rather than packaged in with the "
-          "installer itself. For more information, see the "
-          "cpack_configure_downloads command."
-          "\n"
-          "ARCHIVE_FILE provides a name for the archive file created by CPack "
-          "to be used for downloaded components. If not supplied, CPack will "
-          "create a file with some name based on CPACK_PACKAGE_FILE_NAME and "
-          "the name of the component. See cpack_configure_downloads for more "
-          "information."
-);
-
-    v.push_back(e);
-}
diff --git a/Source/CPack/cmCPackDocumentMacros.h b/Source/CPack/cmCPackDocumentMacros.h
deleted file mode 100644
index 544f74f..0000000
--- a/Source/CPack/cmCPackDocumentMacros.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*============================================================================
-  CMake - Cross Platform Makefile Generator
-  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
-
-  Distributed under the OSI-approved BSD License (the "License");
-  see accompanying file Copyright.txt for details.
-
-  This software is distributed WITHOUT ANY WARRANTY; without even the
-  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-  See the License for more information.
-============================================================================*/
-#ifndef cmCPackDocumentMacros_h
-#define cmCPackDocumentMacros_h
-#include "cmStandardIncludes.h"
-class cmCPackDocumentMacros
-{
-public:
-  static void GetMacrosDocumentation(std::vector<cmDocumentationEntry>& v);
-};
-
-#endif
diff --git a/Source/CPack/cmCPackDocumentVariables.cxx b/Source/CPack/cmCPackDocumentVariables.cxx
deleted file mode 100644
index 1c98e7c..0000000
--- a/Source/CPack/cmCPackDocumentVariables.cxx
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "cmCPackDocumentVariables.h"
-#include "cmake.h"
-
-void cmCPackDocumentVariables::DefineVariables(cmake* cm)
-{
-  // Subsection: variables defined/used by cpack,
-  // which are common to all CPack generators
-  cm->DefineProperty
-    ("CPACK_PACKAGE_NAME", cmProperty::VARIABLE,
-     "The name of the package (or application).",
-     "If not specified, defaults to the project name."
-     "", false,
-     "Variables common to all CPack generators");
-
-  cm->DefineProperty
-      ("CPACK_PACKAGE_VENDOR", cmProperty::VARIABLE,
-       "The name of the package vendor.",
-       "If not specified, defaults to \"Humanity\"."
-       "", false,
-       "Variables common to all CPack generators");
-
-  // Subsection: variables defined/used by cpack,
-  // which are specific to one CPack generator
-  cm->DefineProperty
-      ("CPACK_RPM_PACKAGE_NAME", cmProperty::VARIABLE,
-       "RPM specific package name.",
-       "If not specified, defaults to CPACK_PACKAGE_NAME."
-       "", false,
-       "Variables specific to a CPack generator");
-}
diff --git a/Source/CPack/cmCPackDocumentVariables.h b/Source/CPack/cmCPackDocumentVariables.h
deleted file mode 100644
index e7971be..0000000
--- a/Source/CPack/cmCPackDocumentVariables.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*============================================================================
-  CMake - Cross Platform Makefile Generator
-  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
-
-  Distributed under the OSI-approved BSD License (the "License");
-  see accompanying file Copyright.txt for details.
-
-  This software is distributed WITHOUT ANY WARRANTY; without even the
-  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-  See the License for more information.
-============================================================================*/
-#ifndef cmCPackDocumentVariables_h
-#define cmCPackDocumentVariables_h
-class cmake;
-class cmCPackDocumentVariables
-{
-public:
-  static void DefineVariables(cmake* cm);
-};
-
-#endif
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 2cfbf12..163f744 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -14,8 +14,6 @@
 // Need these for documentation support.
 #include "cmake.h"
 #include "cmDocumentation.h"
-#include "cmCPackDocumentVariables.h"
-#include "cmCPackDocumentMacros.h"
 #include "cmCPackGeneratorFactory.h"
 #include "cmCPackGenerator.h"
 #include "cmake.h"
@@ -92,40 +90,6 @@ static const char * cmDocumentationOptions[][3] =
      "If vendor is not specified on cpack command line "
      "(or inside CMakeLists.txt) then"
      "CPack.cmake defines it with a default value"},
-    {"--help-command cmd [file]", "Print help for a single command and exit.",
-    "Full documentation specific to the given command is displayed. "
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-    "page, HTML, DocBook and plain text."},
-    {"--help-command-list [file]", "List available commands and exit.",
-     "The list contains all commands for which help may be obtained by using "
-     "the --help-command argument followed by a command name. "
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-    "page, HTML, DocBook and plain text."},
-    {"--help-commands [file]", "Print help for all commands and exit.",
-     "Full documentation specific for all current command is displayed."
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-    "page, HTML, DocBook and plain text."},
-    {"--help-variable var [file]",
-     "Print help for a single variable and exit.",
-     "Full documentation specific to the given variable is displayed."
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-    "page, HTML, DocBook and plain text."},
-    {"--help-variable-list [file]", "List documented variables and exit.",
-     "The list contains all variables for which help may be obtained by using "
-     "the --help-variable argument followed by a variable name.  If a file is "
-     "specified, the help is written into it."
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-     "page, HTML, DocBook and plain text."},
-    {"--help-variables [file]", "Print help for all variables and exit.",
-     "Full documentation for all variables is displayed."
-    "If a file is specified, the documentation is written into and the output "
-    "format is determined depending on the filename suffix. Supported are man "
-    "page, HTML, DocBook and plain text."},
     {0,0,0}
 };
 
@@ -173,15 +137,12 @@ int cpackDefinitionArgument(const char* argument, const char* cValue,
   return 1;
 }
 
-
 //----------------------------------------------------------------------------
 // this is CPack.
 int main (int argc, char *argv[])
 {
   cmSystemTools::FindExecutableDirectory(argv[0]);
   cmCPackLog log;
-  int nocwd = 0;
-
   log.SetErrorPrefix("CPack Error: ");
   log.SetWarningPrefix("CPack Warning: ");
   log.SetOutputPrefix("CPack: ");
@@ -193,7 +154,6 @@ int main (int argc, char *argv[])
     {
     cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
       "Current working directory cannot be established." << std::endl);
-    nocwd = 1;
     }
 
   std::string generator;
@@ -219,6 +179,7 @@ int main (int argc, char *argv[])
 
   cpackConfigFile = "";
 
+  cmDocumentation doc;
   cmsys::CommandLineArguments arg;
   arg.Initialize(argc, argv);
   typedef cmsys::CommandLineArguments argT;
@@ -291,16 +252,10 @@ int main (int argc, char *argv[])
   generators.SetLogger(&log);
   cmCPackGenerator* cpackGenerator = 0;
 
-  cmDocumentation doc;
-  doc.addCPackStandardDocSections();
-  /* Were we invoked to display doc or to do some work ? */
-  if(doc.CheckOptions(argc, argv,"-G") || nocwd)
+  if ( !helpFull.empty() || !helpMAN.empty() ||
+    !helpHTML.empty() || helpVersion )
     {
-      help = true;
-    }
-  else
-    {
-      help = false;
+    help = true;
     }
 
   if ( parsed && !help )
@@ -510,25 +465,14 @@ int main (int argc, char *argv[])
    */
   if ( help )
     {
+    doc.CheckOptions(argc, argv);
     // Construct and print requested documentation.
-    std::vector<cmDocumentationEntry> variables;
-
     doc.SetName("cpack");
     doc.SetSection("Name",cmDocumentationName);
     doc.SetSection("Usage",cmDocumentationUsage);
     doc.SetSection("Description",cmDocumentationDescription);
     doc.PrependSection("Options",cmDocumentationOptions);
 
-    cmCPackDocumentVariables::DefineVariables(&cminst);
-    std::map<std::string,cmDocumentationSection *> propDocs;
-    cminst.GetPropertiesDocumentation(propDocs);
-    doc.SetSections(propDocs);
-
-    std::vector<cmDocumentationEntry> commands;
-    cminst.GetCommandDocumentation(commands);
-    cmCPackDocumentMacros::GetMacrosDocumentation(commands);
-    doc.SetSection("Commands",commands);
-
     std::vector<cmDocumentationEntry> v;
     cmCPackGeneratorFactory::DescriptionsMap::const_iterator generatorIt;
     for( generatorIt = generators.GetGeneratorsList().begin();
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 623d7d3..b1a72af 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -102,7 +102,6 @@ int main(int argc, char** argv)
 {
   cmSystemTools::FindExecutableDirectory(argv[0]);
   cmDocumentation doc;
-  doc.addCMakeStandardDocSections();
   if(doc.CheckOptions(argc, argv))
     {
     cmake hcm;
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index b4f3d72..7ba7f51 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -64,7 +64,6 @@ int main(int argc, char** argv)
   // check docs first so that X is not need to get docs
   // do docs, if args were given
   cmDocumentation doc;
-  doc.addCMakeStandardDocSections();
   if(argc >1 && doc.CheckOptions(argc, argv))
     {
     // Construct and print requested documentation.
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 8f603f2..07683d0 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -220,7 +220,55 @@ cmDocumentation::cmDocumentation()
 :CurrentFormatter(0)
 {
   this->SetForm(TextForm);
-  this->addCommonStandardDocSections();
+
+  cmDocumentationSection *sec;
+
+  sec = new cmDocumentationSection("Author","AUTHOR");
+  sec->Append(cmDocumentationEntry
+              (0,
+               "This manual page was generated by the \"--help-man\" option.",
+               0));
+  this->AllSections["Author"] = sec;
+
+  sec = new cmDocumentationSection("Copyright","COPYRIGHT");
+  sec->Append(cmDocumentationCopyright);
+  this->AllSections["Copyright"] = sec;
+
+  sec = new cmDocumentationSection("See Also","SEE ALSO");
+  sec->Append(cmDocumentationStandardSeeAlso);
+  this->AllSections["Standard See Also"] = sec;
+
+  sec = new cmDocumentationSection("Options","OPTIONS");
+  sec->Append(cmDocumentationStandardOptions);
+  this->AllSections["Options"] = sec;
+
+  sec = new cmDocumentationSection("Properties","PROPERTIES");
+  sec->Append(cmPropertiesDocumentationDescription);
+  this->AllSections["Properties Description"] = sec;
+
+  sec = new cmDocumentationSection("Generators","GENERATORS");
+  sec->Append(cmDocumentationGeneratorsHeader);
+  this->AllSections["Generators"] = sec;
+
+  sec = new cmDocumentationSection("Compatibility Commands",
+                                   "COMPATIBILITY COMMANDS");
+  sec->Append(cmCompatCommandsDocumentationDescription);
+  this->AllSections["Compatibility Commands"] = sec;
+
+
+  this->PropertySections.push_back("Properties of Global Scope");
+  this->PropertySections.push_back("Properties on Directories");
+  this->PropertySections.push_back("Properties on Targets");
+  this->PropertySections.push_back("Properties on Tests");
+  this->PropertySections.push_back("Properties on Source Files");
+  this->PropertySections.push_back("Properties on Cache Entries");
+
+  this->VariableSections.push_back("Variables that Provide Information");
+  this->VariableSections.push_back("Variables That Change Behavior");
+  this->VariableSections.push_back("Variables That Describe the System");
+  this->VariableSections.push_back("Variables that Control the Build");
+  this->VariableSections.push_back("Variables for Languages");
+
   this->ShowGenerators = true;
 }
 
@@ -662,88 +710,6 @@ cmDocumentation::Form cmDocumentation::GetFormFromFilename(
 }
 
 //----------------------------------------------------------------------------
-void cmDocumentation::addCommonStandardDocSections()
-{
-    cmDocumentationSection *sec;
-
-    sec = new cmDocumentationSection("Author","AUTHOR");
-    sec->Append(cmDocumentationEntry
-               (0,
-                "This manual page was generated by the \"--help-man\" option.",
-                0));
-    this->AllSections["Author"] = sec;
-
-    sec = new cmDocumentationSection("Copyright","COPYRIGHT");
-    sec->Append(cmDocumentationCopyright);
-    this->AllSections["Copyright"] = sec;
-
-    sec = new cmDocumentationSection("See Also","SEE ALSO");
-    sec->Append(cmDocumentationStandardSeeAlso);
-    this->AllSections["Standard See Also"] = sec;
-
-    sec = new cmDocumentationSection("Options","OPTIONS");
-    sec->Append(cmDocumentationStandardOptions);
-    this->AllSections["Options"] = sec;
-
-    sec = new cmDocumentationSection("Compatibility Commands",
-                                     "COMPATIBILITY COMMANDS");
-    sec->Append(cmCompatCommandsDocumentationDescription);
-    this->AllSections["Compatibility Commands"] = sec;
-}
-
-//----------------------------------------------------------------------------
-void cmDocumentation::addCMakeStandardDocSections()
-{
-    cmDocumentationSection *sec;
-
-    sec = new cmDocumentationSection("Properties","PROPERTIES");
-    sec->Append(cmPropertiesDocumentationDescription);
-    this->AllSections["Properties Description"] = sec;
-
-    sec = new cmDocumentationSection("Generators","GENERATORS");
-    sec->Append(cmDocumentationGeneratorsHeader);
-    this->AllSections["Generators"] = sec;
-
-    this->PropertySections.push_back("Properties of Global Scope");
-    this->PropertySections.push_back("Properties on Directories");
-    this->PropertySections.push_back("Properties on Targets");
-    this->PropertySections.push_back("Properties on Tests");
-    this->PropertySections.push_back("Properties on Source Files");
-    this->PropertySections.push_back("Properties on Cache Entries");
-
-    this->VariableSections.push_back("Variables that Provide Information");
-    this->VariableSections.push_back("Variables That Change Behavior");
-    this->VariableSections.push_back("Variables That Describe the System");
-    this->VariableSections.push_back("Variables that Control the Build");
-    this->VariableSections.push_back("Variables for Languages");
-
-}
-
-//----------------------------------------------------------------------------
-void cmDocumentation::addCTestStandardDocSections()
-{
-    cmDocumentationSection *sec;
-    // This is currently done for backward compatibility reason
-    // We may suppress some of these.
-    addCMakeStandardDocSections();
-}
-
-//----------------------------------------------------------------------------
-void cmDocumentation::addCPackStandardDocSections()
-{
-    cmDocumentationSection *sec;
-
-    sec = new cmDocumentationSection("Generators","GENERATORS");
-    sec->Append(cmDocumentationGeneratorsHeader);
-    this->AllSections["Generators"] = sec;
-
-    this->VariableSections.push_back(
-            "Variables common to all CPack generators");
-    this->VariableSections.push_back(
-            "Variables specific to a CPack generator");
-}
-
-//----------------------------------------------------------------------------
 bool cmDocumentation::CheckOptions(int argc, const char* const* argv,
                                    const char* exitOpt)
 {
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index a7a7a1f..34b83b1 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -119,18 +119,6 @@ public:
   
   static Form GetFormFromFilename(const std::string& filename);
 
-  /** Add common (to all tools) documentation section(s) */
-  void addCommonStandardDocSections();
-
-  /** Add the CMake standard documentation section(s) */
-  void addCMakeStandardDocSections();
-
-  /** Add the CTest standard documentation section(s) */
-  void addCTestStandardDocSections();
-
-  /** Add the CPack standard documentation section(s) */
-  void addCPackStandardDocSections();
-
 private:
   void SetForm(Form f);
   void SetDocName(const char* docname);
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index c3de8ca..436236d 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -355,7 +355,6 @@ int do_cmake(int ac, char** av)
 
 #ifdef CMAKE_BUILD_WITH_CMAKE
   cmDocumentation doc;
-  doc.addCMakeStandardDocSections();
   if(doc.CheckOptions(ac, av, "-E") || nocwd)
     { 
     // Construct and print requested documentation.
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index d41627e..85cecea 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -291,7 +291,6 @@ int main (int argc, char *argv[])
         << "*********************************" << std::endl);
       }
     cmDocumentation doc;
-    doc.addCTestStandardDocSections();
     if(doc.CheckOptions(argc, argv) || nocwd)
       {
       // Construct and print requested documentation.

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f1a049a3109ff573ca67f464c6c002673e4222cb
commit f1a049a3109ff573ca67f464c6c002673e4222cb
Author:     Eric NOULARD <eric.noulard at gmail.com>
AuthorDate: Tue Jan 3 18:02:20 2012 +0100
Commit:     Eric NOULARD <eric.noulard at gmail.com>
CommitDate: Tue Jan 3 18:02:20 2012 +0100

    Revert "Update cmake bash completion file."
    
    This reverts commit ab6c9c03bcdb89717345d68bdc979d74fd776d04.

diff --git a/Docs/cmake-completion b/Docs/cmake-completion
index 87b5779..011f3fa 100644
--- a/Docs/cmake-completion
+++ b/Docs/cmake-completion
@@ -52,12 +52,12 @@ _cmake()
             return 0
             ;;
         --help-command)
-            local running=$(for x in `cmake --help-command-list | grep -v "cmake version"`; do echo ${x} ; done )
+            local running=$(for x in `cmake --help-command-list`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
             ;;
         --help-module)
-            local running=$(for x in `cmake --help-module-list | grep -v "cmake version"`; do echo ${x} ; done )
+            local running=$(for x in `cmake --help-module-list`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
             ;;
@@ -67,12 +67,12 @@ _cmake()
             return 0
             ;;
          --help-property)
-            local running=$(for x in `cmake --help-property-list | grep -v "cmake version"`; do echo ${x} ; done )
+            local running=$(for x in `cmake --help-property-list`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
             ;;
          --help-variable)
-            local running=$(for x in `cmake --help-variable-list | grep -v "cmake version"`; do echo ${x} ; done )
+            local running=$(for x in `cmake --help-variable-list`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
             ;;
@@ -123,29 +123,19 @@ _cpack()
             COMPREPLY=( $(compgen -f ${cur}) )
             return 0
             ;;
-        --help-variable)
-            local running=$(for x in `cpack --help-variable-list | grep -v "cpack version" `; do echo ${x} ; done )
-            COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
-            return 0
-            ;;
-        --help-command)
-            local running=$(for x in `cmake --help-command-list | grep -v "cpack version" `; do echo ${x} ; done )
-            COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
-            return 0
-            ;;
         *)
             ;;
     esac
 
     #
-    # Complete the option (Level 0 - right after cpack)
+    # Complete the option (Level 0 - right after cmake)
     #
     COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
 } &&
 complete -F _cpack -o default cpack
 
 #
-# ctest command
+# cmake command
 #
 # have ctest &&
 _ctest()
@@ -166,11 +156,11 @@ _ctest()
     #
     case "${prev}" in
         --help-command)
-            local running=$(for x in `ctest --help-command-list | grep -v "ctest version" `; do echo ${x} ; done )
+            local running=$(for x in `ctest --help-command-list`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
             ;;
-        -R|-E)
+        -R)
             local running=$(for x in `ctest -N 2> /dev/null | grep "^  Test" | cut -d: -f 2`; do echo ${x} ; done )
             COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
             return 0
@@ -197,4 +187,4 @@ complete -F _ctest -o default ctest
 # sh-indent-comment: t
 # indent-tabs-mode: nil
 # End:
-# ex: ts=4 sw=4 et filetype=sh
+# ex: ts=4 sw=4 et filetype=sh
\ No newline at end of file

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3ee0c49f9c5c3e187165d68dca9571cafcfba059
commit 3ee0c49f9c5c3e187165d68dca9571cafcfba059
Author:     Eric NOULARD <eric.noulard at gmail.com>
AuthorDate: Tue Jan 3 18:02:08 2012 +0100
Commit:     Eric NOULARD <eric.noulard at gmail.com>
CommitDate: Tue Jan 3 18:02:08 2012 +0100

    Revert "Avoid compiler warning concerning unused var"
    
    This reverts commit 5dec7a571d96bc6aca72c407aaffdb5f47910d29.

diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 85dbe76..8f603f2 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -722,7 +722,7 @@ void cmDocumentation::addCMakeStandardDocSections()
 //----------------------------------------------------------------------------
 void cmDocumentation::addCTestStandardDocSections()
 {
-    //cmDocumentationSection *sec;
+    cmDocumentationSection *sec;
     // This is currently done for backward compatibility reason
     // We may suppress some of these.
     addCMakeStandardDocSections();

-----------------------------------------------------------------------

Summary of changes:
 Docs/cmake-completion                     |   28 ++----
 Source/CMakeLists.txt                     |    2 -
 Source/CPack/cmCPackDocumentMacros.cxx    |   78 -----------------
 Source/CPack/cmCPackDocumentMacros.h      |   21 -----
 Source/CPack/cmCPackDocumentVariables.cxx |   30 -------
 Source/CPack/cmCPackDocumentVariables.h   |   21 -----
 Source/CPack/cpack.cxx                    |   89 +------------------
 Source/CursesDialog/ccmake.cxx            |    1 -
 Source/QtDialog/CMakeSetup.cxx            |    1 -
 Source/cmDocumentation.cxx                |  132 +++++++++++------------------
 Source/cmDocumentation.h                  |   12 ---
 Source/cmakemain.cxx                      |    1 -
 Source/ctest.cxx                          |    1 -
 13 files changed, 63 insertions(+), 354 deletions(-)
 delete mode 100644 Source/CPack/cmCPackDocumentMacros.cxx
 delete mode 100644 Source/CPack/cmCPackDocumentMacros.h
 delete mode 100644 Source/CPack/cmCPackDocumentVariables.cxx
 delete mode 100644 Source/CPack/cmCPackDocumentVariables.h


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list