summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-02-14 00:05:18 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-02-14 00:05:18 -0800
commit96fbe2b900d47188c358af0fb06b0253a945a027 (patch)
tree25957e35fd3a78cadf58d8d8628157ae8c6b979e /Makefile.in
parentb8630261dda1988bd1cabe7fc1b567b6e140eabb (diff)
downloademacs-96fbe2b900d47188c358af0fb06b0253a945a027.tar.gz
* 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
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 44ba084bee4..76a030407b9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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}