]> git.eshelyaron.com Git - emacs.git/commitdiff
(update-elclist): Make errors in final sed non-fatal.
authorGlenn Morris <rgm@gnu.org>
Tue, 27 May 2008 02:14:59 +0000 (02:14 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 27 May 2008 02:14:59 +0000 (02:14 +0000)
lisp/ChangeLog
lisp/Makefile.in

index 9965fa6a27f7564cf56bfec3886d5ae0a2fa7778..2e652280db926322a9c2a6f4f12f8560c75209d7 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-27  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (update-elclist): Make errors in final sed non-fatal.
+
 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * vc-dispatcher.el (vc-string-prefix-p): New function.
index 3bec86421ce177bc194ea6116336e60798187b94..848492f864d952a218a14927c989b2c560bb8f4d 100644 (file)
@@ -160,16 +160,18 @@ TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
 ## single \ at the end of the replacement text).  For the last line,
 ## just use a single "\", for sed.  Finally, run sed using the command
 ## 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.
 update-elclist:
        echo "/^ELCFILES/,/^$$/c\\" > temp.sed
        echo "ELCFILES = \\\\\\" >> 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
-       sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || { rm temp-elcfiles temp.sed; exit 1 ; }
+       -sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || rm temp-elcfiles
        rm temp.sed
        chmod +w $(lisp)/Makefile.in
-       mv -f temp-elcfiles $(lisp)/Makefile.in
+       mv -f temp-elcfiles $(lisp)/Makefile.in || echo "Maintainer warning: failed to update Makefile.in"
 
 ## Explicitly list the .elc files, for the sake of parallel builds.
 ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html