Replace actual sysconfdir in bash_completion on install (Alioth: #313081).

This commit is contained in:
Ville Skyttä 2011-04-20 15:18:49 +03:00
parent 4c9789605f
commit 2738468dde
2 changed files with 7 additions and 0 deletions

View File

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

View File

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