[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-85-g2738468
Ville Skyttä
ville.skytta at iki.fi
Wed Apr 20 12:19:58 UTC 2011
The following commit has been merged in the master branch:
commit 2738468ddef169b81f780fffdb86e88e684ad18c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Apr 20 15:18:49 2011 +0300
Replace actual sysconfdir in bash_completion on install (Alioth: #313081).
diff --git a/CHANGES b/CHANGES
index 3c216ed..e69ec17 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,7 @@ bash-completion (2.x)
* Fix local variable leaks from various completions.
* Add _init_completion() for common completion initialization and generic
redirection handling, use it in many completions.
+ * Replace actual sysconfdir in bash_completion on install (Alioth: #313081).
[ Guillaume Rousse ]
* added puppet completion, using work from Mathieu Parent (sathieudebian.org)
diff --git a/Makefile.am b/Makefile.am
index dcecc32..6550a83 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,3 +11,9 @@ bash_completion.sh: bash_completion.sh.in Makefile
CLEANFILES = bash_completion.sh
EXTRA_DIST = CHANGES $(sysconf_DATA) bash_completion.sh.in
+
+install-data-hook:
+ tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
+ sed -e 's|=/etc/bash_completion|=$(sysconfdir)/bash_completion|' \
+ $(DESTDIR)$(sysconfdir)/bash_completion > $$tmpfile && \
+ mv $$tmpfile $(DESTDIR)$(sysconfdir)/bash_completion
--
bash-completion
More information about the Bash-completion-commits
mailing list