install-data-hook: Avoid problematic mode bits for bash_completion from mktemp.

This commit is contained in:
Ville Skyttä 2011-11-04 22:05:46 +02:00
parent 0b4f797700
commit bbf5257209

View File

@ -20,4 +20,5 @@ install-data-hook:
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
sed -e 's|=/etc/bash_completion\.d|=$(sysconfdir)/bash_completion.d|' \
$(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
mv $$tmpfile $(DESTDIR)$(pkgdatadir)/bash_completion
cat $$tmpfile > $(DESTDIR)$(pkgdatadir)/bash_completion && \
rm $$tmpfile