summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-05-30 05:49:27 +0000
committerRichard M. Stallman <rms@gnu.org>1997-05-30 05:49:27 +0000
commit8615e792428131034d4c6f4ed6681ac2ffaf67dd (patch)
treeb8ae1ac452aafe1773eed50dc5f125edeb6122c8 /make-dist
parent86414c3ca0a38442d0df120d5573e756e7a49044 (diff)
downloademacs-8615e792428131034d4c6f4ed6681ac2ffaf67dd.tar.gz
Warn about .el files that are not compiled.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist19
1 files changed, 17 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index 6b924b1f6b0..67aaffe9d4d 100755
--- a/make-dist
+++ b/make-dist
@@ -144,8 +144,8 @@ them, and try again." >&2
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 @@ if [ "${bogosities}" != "" ]; then
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