1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00

* Makefile.in (install-arch-indep): Allow ' ' in destdir.

This fixes a bug in the previous change.  Also, use $(SHELL)
rather than sh, as that's more likely to be portable.

Fixes: debbugs:16717
This commit is contained in:
Paul Eggert 2014-02-14 00:05:18 -08:00
parent b8630261dd
commit 96fbe2b900
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2014-02-14 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.in (install-arch-indep): Allow ' ' in destdir (Bug#16717).
This fixes a bug in the previous change. Also, use $(SHELL)
rather than sh, as that's more likely to be portable.
2014-02-13 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.in (install-arch-indep): Simplify (Bug#16717).

View File

@ -614,8 +614,9 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
${write_subdir} || true
[ -z "${GZIP_PROG}" ] || { \
echo "Compressing *.el ..." && \
find "$(DESTDIR)${lispdir}" -name '*.elc' -exec sh -c \
'${GZIP_PROG} -9n `expr "$$@" : "\\(.*\\)c"`' dummy '{}' ';'; \
cd "$(DESTDIR)${lispdir}" && \
find . -name '*.elc' -exec $(SHELL) -c \
'${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \
}
-chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS}