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
+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).
${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}