1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

(update-elclist): Work around non-portability of "\" in various

implementations of echo.
This commit is contained in:
Glenn Morris 2008-05-28 03:18:49 +00:00
parent c1e4782a8a
commit 1ea1e2d498
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-28 Glenn Morris <rgm@gnu.org>
* Makefile.in (update-elclist): Work around non-portability of "\"
in various implementations of echo.
2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
* international/mule-diag.el (describe-current-coding-system):

View File

@ -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