Commit a8cb2f3f authored by Glenn Morris's avatar Glenn Morris
Browse files

(update-elclist): Make errors in final sed non-fatal.

parent 4f64a164
2008-05-27 Glenn Morris <>
* (update-elclist): Make errors in final sed non-fatal.
2008-05-27 Stefan Monnier <>
* vc-dispatcher.el (vc-string-prefix-p): New function.
......@@ -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 chmod +w is for CVSREAD=1.
## Errors in final sed are non-fatal, since they have no effect on
## building Emacs.
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)/ > temp-elcfiles || { rm temp-elcfiles temp.sed; exit 1 ; }
-sed -f temp.sed $(lisp)/ > temp-elcfiles || rm temp-elcfiles
rm temp.sed
chmod +w $(lisp)/
mv -f temp-elcfiles $(lisp)/
mv -f temp-elcfiles $(lisp)/ || echo "Maintainer warning: failed to update"
## Explicitly list the .elc files, for the sake of parallel builds.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment