changeset 104651:89332ed854a3

(update-elcfiles): Report left over elc files.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 27 Aug 2009 18:35:20 +0000
parents bbf8f938f283
children f1c36e9555d5
files lisp/ChangeLog lisp/Makefile.in
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Aug 27 18:33:44 2009 +0000
+++ b/lisp/ChangeLog	Thu Aug 27 18:35:20 2009 +0000
@@ -1,5 +1,7 @@
 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* Makefile.in (update-elcfiles): Report left over elc files.
+
 	* mail/mailalias.el (build-mail-aliases): Use with-temp-buffer,
 	expand-file-name and with-current-buffer.
 	(mail-get-names, mail-directory): Use with-current-buffer.
--- a/lisp/Makefile.in	Thu Aug 27 18:33:44 2009 +0000
+++ b/lisp/Makefile.in	Thu Aug 27 18:35:20 2009 +0000
@@ -183,6 +183,12 @@
 	  chmod +w $(lisp)/Makefile.in; \
 	  mv -f temp-elcfiles $(lisp)/Makefile.in; \
 	fi
+	-(COLLATE=C ls $(lisp)/*.elc $(lisp)/*/*.elc | sed 's/elc$$/el/';  \
+	  COLLATE=C ls $(lisp)/*.el  $(lisp)/*/*.el;   			   \
+	  COLLATE=C ls $(lisp)/*.el  $(lisp)/*/*.el) | 			   \
+	     sort | uniq -u | while read extra; do 			   \
+	         echo "Found left over byte-compiled file: $${extra}c !!" ;\
+	     done
 
 ## Explicitly list the .elc files, for the sake of parallel builds.
 ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html