summaryrefslogtreecommitdiffstats
path: root/Docs
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-02-14 21:14:56 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-02-14 21:14:56 (GMT)
commit4f9c114dfabac98dc1b1e55bac3a6be8e9dd23cf (patch)
tree7dd181e8295ed801132256eb9b91a2aa7e5ad3c2 /Docs
parent4f81c709d1c5f9d2ea9bea0b7d2a1cdee9a33f7e (diff)
parentd4b77eba17e01badc836777dbb0c9ec287f098aa (diff)
downloadCMake-4f9c114dfabac98dc1b1e55bac3a6be8e9dd23cf.zip
CMake-4f9c114dfabac98dc1b1e55bac3a6be8e9dd23cf.tar.gz
CMake-4f9c114dfabac98dc1b1e55bac3a6be8e9dd23cf.tar.bz2
Merge topic 'ImproveCPackDoc-reloaded'
d4b77eb Avoid discovering system infos for documentation. Adding some path is enough. 9002f73 Fix non existent std::string::clear on VS6 02ccb32 Create getDocumentedModulesListInDir which may be used in other context. 24fbc28 Add missing section markup for CPackComponent bafd8a9 Example of builtin variable documentation (i.e. only used in C++ source code). 543f1ad Make the load of script documentation more efficient and dynamic. cdbd1a9 Fix another compiler warning due to a typo 52c53de Really avoid compiler warning about unused vars 37f90ed Calm down compiler warning about unused var 7c82b7f Fix potential bad memory access, thanks to Eike 62b589b Suppress unused var, beautify code, avoid 1 extra newline. 751713f Update bash completion file in order to handle new CPack doc options. 1629615 CPack Documentation extraction from CMake script begins to work 83e34dd Implement simple CMake script comment markup language. c6a0169 CPack begin the implementation of --help-command* and --help-variables*
Diffstat (limited to 'Docs')
-rw-r--r--Docs/cmake-completion10
1 files changed, 10 insertions, 0 deletions
diff --git a/Docs/cmake-completion b/Docs/cmake-completion
index d82d608..d70ac24 100644
--- a/Docs/cmake-completion
+++ b/Docs/cmake-completion
@@ -130,6 +130,16 @@ _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 `cpack --help-command-list | grep -v "cpack version" `; do echo ${x} ; done )
+ COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
+ return 0
+ ;;
*)
;;
esac