[Bash-completion-commits] [bash-completion] 02/02: README: Add autotools and cmake tips

Ville Skyttä scop-guest at moszumanska.debian.org
Sun Feb 15 08:04:14 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 3a8e7bd0fe45b4ebf76b4cd6da9246034b2e0557
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Feb 15 10:02:22 2015 +0200

    README: Add autotools and cmake tips
---
 README | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/README b/README
index 074593e..256adaf 100644
--- a/README
+++ b/README
@@ -126,6 +126,21 @@ Q. I author/maintain package X and would like to maintain my own
    "pkg-config --variable=compatdir bash-completion") from which files
    are loaded when bash_completion is loaded.
 
+   For packages using GNU autotools the installation can be handled
+   for example like this in configure.ac:
+
+     PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
+       bashcompdir="${sysconfdir}/bash_completion.d")
+     AC_SUBST(bashcompdir)
+
+   ...accompanied by this in Makefile.am:
+
+     bashcompdir = @bashcompdir@
+     dist_bashcomp_DATA = # completion files go here
+
+   For cmake we ship the bash-completion-config.cmake and
+   bash-completion-config-version.cmake files.
+
 Q. I use CVS in combination with passwordless ssh access to my remote
    repository. How can I have the cvs command complete on remotely
    checked-out files where relevant?

-- 
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