From 50c0162ec4fd22a757df69fabe8202685093ca74 Mon Sep 17 00:00:00 2001 From: Stephen Hassard Date: Tue, 8 Jul 2014 08:46:54 -0700 Subject: [PATCH] Fix .el compression on CentOS 7 --- Makefile.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 76a0304..f4fd4aa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -614,9 +614,8 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} ${write_subdir} || true [ -z "${GZIP_PROG}" ] || { \ echo "Compressing *.el ..." && \ - cd "$(DESTDIR)${lispdir}" && \ - find . -name '*.elc' -exec $(SHELL) -c \ - '${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \ + find "$(DESTDIR)${lispdir}" -name '*.el' \ + -exec ${SHELL} -c 'test -f {}c' \; -exec ${GZIP_PROG} -9n {} \; ; \ } -chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS} -- 1.8.3.1