aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-05-28 03:18:49 +0000
committerGlenn Morris2008-05-28 03:18:49 +0000
commit1ea1e2d498e7b8a692e21f6255085fa6fdbd3b23 (patch)
tree43d77d1c789187b1babbaa79a490618eb5aae414
parentc1e4782a8afe46dbe3745fc50e71f58144023295 (diff)
downloademacs-1ea1e2d498e7b8a692e21f6255085fa6fdbd3b23.tar.gz
emacs-1ea1e2d498e7b8a692e21f6255085fa6fdbd3b23.zip
(update-elclist): Work around non-portability of "\" in various
implementations of echo.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/Makefile.in6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index afcee6d44eb..bf1a3e309fd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-28 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (update-elclist): Work around non-portability of "\"
4 in various implementations of echo.
5
12008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> 62008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * international/mule-diag.el (describe-current-coding-system): 8 * 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)
162## so constructed and update Makefile.in. chmod +w is for CVSREAD=1. 162## so constructed and update Makefile.in. chmod +w is for CVSREAD=1.
163## Errors in final sed are non-fatal, since they have no effect on 163## Errors in final sed are non-fatal, since they have no effect on
164## building Emacs. 164## building Emacs.
165## "echo" is non-portable with regards to backslashes, eg between zsh
166## and bash. Hence the used of sed on line 2 below (the ones on line
167## 1 seem to be OK).
168## http://lists.gnu.org/archive/html/emacs-devel/2008-05/msg01535.html
165update-elclist: 169update-elclist:
166 echo "/^ELCFILES/,/^$$/c\\" > temp.sed 170 echo "/^ELCFILES/,/^$$/c\\" > temp.sed
167 echo "ELCFILES = \\\\\\" >> temp.sed 171 echo "ELCFILES =" | sed -e 's/$$/ \\\\\\/' >> temp.sed
168 exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ 172 exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \
169 ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed 173 ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed
170 echo "" >> temp.sed 174 echo "" >> temp.sed