# HG changeset patch # User Glenn Morris # Date 1211944714 0 # Node ID d797842f5ca187c4394e4140501b1ad7f9d57f81 # Parent 3e684bf03875b6edc23d390c1e7afb5116856d83 (update-elclist): Work around non-portability of "\" in various implementations of echo. diff -r 3e684bf03875 -r d797842f5ca1 lisp/Makefile.in --- 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