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:
parent
c1e4782a8a
commit
1ea1e2d498
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user