From 1ea1e2d498e7b8a692e21f6255085fa6fdbd3b23 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 28 May 2008 03:18:49 +0000 Subject: [PATCH] (update-elclist): Work around non-portability of "\" in various implementations of echo. --- lisp/ChangeLog | 5 +++++ lisp/Makefile.in | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index afcee6d44eb..bf1a3e309fd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-05-28 Glenn Morris + + * Makefile.in (update-elclist): Work around non-portability of "\" + in various implementations of echo. + 2008-05-27 Stefan Monnier * international/mule-diag.el (describe-current-coding-system): diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 848492f864d..4f7ed58eda7 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -162,9 +162,13 @@ TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) ## so constructed and update Makefile.in. chmod +w is for CVSREAD=1. ## Errors in final sed are non-fatal, since they have no effect on ## building Emacs. +## "echo" is non-portable with regards to backslashes, eg between zsh +## and bash. Hence the used of sed on line 2 below (the ones on line +## 1 seem to be OK). +## http://lists.gnu.org/archive/html/emacs-devel/2008-05/msg01535.html update-elclist: echo "/^ELCFILES/,/^$$/c\\" > temp.sed - echo "ELCFILES = \\\\\\" >> temp.sed + echo "ELCFILES =" | sed -e 's/$$/ \\\\\\/' >> temp.sed exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed echo "" >> temp.sed -- 2.39.2