Mercurial > emacs
diff make-dist @ 18039:0696d4c9aa15
Warn about .el files that are not compiled.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 30 May 1997 05:49:27 +0000 |
parents | b8a3deb464b9 |
children | 6f263a83b071 |
line wrap: on
line diff
--- a/make-dist Fri May 30 05:30:58 1997 +0000 +++ b/make-dist Fri May 30 05:49:27 1997 +0000 @@ -144,8 +144,8 @@ fi ### Check for .elc files with no corresponding .el file. -ls -1 lisp/*.el | sed 's/\.el$/.elc/' > /tmp/el -ls -1 lisp/*.elc > /tmp/elc +ls -1 lisp/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el +ls -1 lisp/[a-z]*.elc > /tmp/elc bogosities="`comm -13 /tmp/el /tmp/elc`" if [ "${bogosities}" != "" ]; then echo "The following .elc files have no corresponding .el files:" @@ -153,6 +153,21 @@ fi rm -f /tmp/el /tmp/elc +### Check for .el files with no corresponding .elc file. +(cd lisp; ls -1 [a-z]*.el) > /tmp/el +(cd lisp; ls -1 [a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc +losers="`comm -23 /tmp/el /tmp/elc`" +for file in $losers; do + if ! grep -q "dontcompilefiles:.* $file\($\| \)" lisp/Makefile; then + bogosities="$file $bogosities" + fi +done +if [ "${bogosities}" != "" ]; then + echo "The following .elc files have no corresponding .el files:" + echo "${bogosities}" +fi +rm -f /tmp/el /tmp/elc + ### Check for .el files that would overflow the 14-char limit if compiled. long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print` if [ "$long" != "" ]; then