diff options
author | Paul Eggert <[email protected]> | 2014-02-14 00:05:18 -0800 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2014-02-14 00:05:18 -0800 |
commit | 96fbe2b900d47188c358af0fb06b0253a945a027 (patch) | |
tree | 25957e35fd3a78cadf58d8d8628157ae8c6b979e /Makefile.in | |
parent | b8630261dda1988bd1cabe7fc1b567b6e140eabb (diff) |
* 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.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 44ba084bee..76a030407b 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} |