[Bash-completion-commits] [bash-completion] 01/01: README: Add cmake usage example
Ville Skyttä
scop-guest at moszumanska.debian.org
Sun Feb 15 08:58:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit 889718be68ccd442ee824f6405d706d8e2734a03
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Feb 15 10:45:13 2015 +0200
README: Add cmake usage example
---
README | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/README b/README
index 256adaf..78cde72 100644
--- a/README
+++ b/README
@@ -139,7 +139,20 @@ Q. I author/maintain package X and would like to maintain my own
dist_bashcomp_DATA = # completion files go here
For cmake we ship the bash-completion-config.cmake and
- bash-completion-config-version.cmake files.
+ bash-completion-config-version.cmake files. Example usage:
+
+ find_package(bash-completion)
+ if(BASH_COMPLETION_FOUND)
+ message(STATUS
+ "Using bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}")
+ else()
+ set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d")
+ message (STATUS
+ "Using fallback bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}")
+ endif()
+
+ install(FILES your-completion-file DESTINATION
+ ${BASH_COMPLETION_COMPLETIONSDIR})
Q. I use CVS in combination with passwordless ssh access to my remote
repository. How can I have the cvs command complete on remotely
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list