diff options
| author | Glenn Morris | 2008-05-27 02:14:59 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-05-27 02:14:59 +0000 |
| commit | a8cb2f3f1dc9c2a9710c112520a88f88600cc2d4 (patch) | |
| tree | 7c9edbf96ef1f01cfc91ff86007a6795b7608b9d | |
| parent | 4f64a16487a6698413b526236d892c1a3f2da552 (diff) | |
| download | emacs-a8cb2f3f1dc9c2a9710c112520a88f88600cc2d4.tar.gz emacs-a8cb2f3f1dc9c2a9710c112520a88f88600cc2d4.zip | |
(update-elclist): Make errors in final sed non-fatal.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/Makefile.in | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9965fa6a27f..2e652280db9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-05-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (update-elclist): Make errors in final sed non-fatal. | ||
| 4 | |||
| 1 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * vc-dispatcher.el (vc-string-prefix-p): New function. | 7 | * vc-dispatcher.el (vc-string-prefix-p): New function. |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 3bec86421ce..848492f864d 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -160,16 +160,18 @@ TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) | |||
| 160 | ## single \ at the end of the replacement text). For the last line, | 160 | ## single \ at the end of the replacement text). For the last line, |
| 161 | ## just use a single "\", for sed. Finally, run sed using the command | 161 | ## just use a single "\", for sed. Finally, run sed using the command |
| 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 | ||
| 164 | ## building Emacs. | ||
| 163 | update-elclist: | 165 | update-elclist: |
| 164 | echo "/^ELCFILES/,/^$$/c\\" > temp.sed | 166 | echo "/^ELCFILES/,/^$$/c\\" > temp.sed |
| 165 | echo "ELCFILES = \\\\\\" >> temp.sed | 167 | echo "ELCFILES = \\\\\\" >> temp.sed |
| 166 | exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ | 168 | exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ |
| 167 | ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed | 169 | ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed |
| 168 | echo "" >> temp.sed | 170 | echo "" >> temp.sed |
| 169 | sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || { rm temp-elcfiles temp.sed; exit 1 ; } | 171 | -sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || rm temp-elcfiles |
| 170 | rm temp.sed | 172 | rm temp.sed |
| 171 | chmod +w $(lisp)/Makefile.in | 173 | chmod +w $(lisp)/Makefile.in |
| 172 | mv -f temp-elcfiles $(lisp)/Makefile.in | 174 | mv -f temp-elcfiles $(lisp)/Makefile.in || echo "Maintainer warning: failed to update Makefile.in" |
| 173 | 175 | ||
| 174 | ## Explicitly list the .elc files, for the sake of parallel builds. | 176 | ## Explicitly list the .elc files, for the sake of parallel builds. |
| 175 | ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html | 177 | ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html |