changeset 95351:d797842f5ca1

(update-elclist): Work around non-portability of "\" in various implementations of echo.
author Glenn Morris <rgm@gnu.org>
date Wed, 28 May 2008 03:18:34 +0000
parents 3e684bf03875
children a69249f54307
files lisp/Makefile.in
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/Makefile.in	Tue May 27 21:10:55 2008 +0000
+++ b/lisp/Makefile.in	Wed May 28 03:18:34 2008 +0000
@@ -162,9 +162,13 @@
 ## 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