diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-02-13 10:59:24 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-02-13 10:59:24 -0800 |
commit | 89a97129155bad4f46dd77a951038cef4c66e1f4 (patch) | |
tree | 859fd31867cf63675980bb7e11725225f597e438 /Makefile.in | |
parent | 8abcfd51c657dc885718f35f385aa5f7d4cd4645 (diff) | |
download | emacs-89a97129155bad4f46dd77a951038cef4c66e1f4.tar.gz |
* Makefile.in (install-arch-indep): Simplify.
This should make it more reliable, and hopefully more portable to
non-GNU 'make' implementations such as HP-UX 'make'.
Fixes: debbugs:16717
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in index 192c9483eb0..44ba084bee4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -612,18 +612,11 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} ${write_subdir} subdir="$(DESTDIR)${datadir}/emacs/site-lisp" ; \ ${write_subdir} || true - [ -z "${GZIP_PROG}" ] || \ - ( echo "Compressing *.el ..." ; \ - unset CDPATH; \ - thisdir=`/bin/pwd`; \ - for dir in "$(DESTDIR)${lispdir}"; do \ - cd "$${thisdir}" ; \ - cd "$${dir}" || exit 1 ; \ - for f in `find . -name "*.elc" -print`; do \ - f_el=`echo "$$f" | sed 's/.elc$$/.el/'`; \ - ${GZIP_PROG} -9n "$$f_el" ; \ - done ; \ - done ) + [ -z "${GZIP_PROG}" ] || { \ + echo "Compressing *.el ..." && \ + find "$(DESTDIR)${lispdir}" -name '*.elc' -exec sh -c \ + '${GZIP_PROG} -9n `expr "$$@" : "\\(.*\\)c"`' dummy '{}' ';'; \ + } -chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS} ## The above chmods are needed because "umask 022; tar ..." is not |