summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-07-11 10:28:53 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-07-11 10:28:53 -0700
commitc9a1635c3855e8a201e330b2548c2ee24159b25d (patch)
treea1f11490d04f1164ac93148d0286066ba8e17fe9 /Makefile.in
parent46b7604ea4e0a27db09be6cc9e980812bde142bf (diff)
downloademacs-c9a1635c3855e8a201e330b2548c2ee24159b25d.tar.gz
* Makefile.in (install-arch-indep): Avoid readdir race.
Fixes: debbugs:17971
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 76a030407b9..103b035a3c9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -615,8 +615,9 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
[ -z "${GZIP_PROG}" ] || { \
echo "Compressing *.el ..." && \
cd "$(DESTDIR)${lispdir}" && \
- find . -name '*.elc' -exec $(SHELL) -c \
- '${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \
+ for f in `find . -name "*.elc" -print | sed 's/.elc$$/.el/'`; do \
+ ${GZIP_PROG} -9n "$$f"; \
+ done; \
}
-chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS}