Replace actual sysconfdir in bash_completion on install (Alioth: #313081).
This commit is contained in:
parent
4c9789605f
commit
2738468dde
1
CHANGES
1
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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user