comparison 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
comparison
equal deleted inserted replaced
18038:1a3d130e356b 18039:0696d4c9aa15
142 them, and try again." >&2 142 them, and try again." >&2
143 exit 1 143 exit 1
144 fi 144 fi
145 145
146 ### Check for .elc files with no corresponding .el file. 146 ### Check for .elc files with no corresponding .el file.
147 ls -1 lisp/*.el | sed 's/\.el$/.elc/' > /tmp/el 147 ls -1 lisp/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
148 ls -1 lisp/*.elc > /tmp/elc 148 ls -1 lisp/[a-z]*.elc > /tmp/elc
149 bogosities="`comm -13 /tmp/el /tmp/elc`" 149 bogosities="`comm -13 /tmp/el /tmp/elc`"
150 if [ "${bogosities}" != "" ]; then
151 echo "The following .elc files have no corresponding .el files:"
152 echo "${bogosities}"
153 fi
154 rm -f /tmp/el /tmp/elc
155
156 ### Check for .el files with no corresponding .elc file.
157 (cd lisp; ls -1 [a-z]*.el) > /tmp/el
158 (cd lisp; ls -1 [a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc
159 losers="`comm -23 /tmp/el /tmp/elc`"
160 for file in $losers; do
161 if ! grep -q "dontcompilefiles:.* $file\($\| \)" lisp/Makefile; then
162 bogosities="$file $bogosities"
163 fi
164 done
150 if [ "${bogosities}" != "" ]; then 165 if [ "${bogosities}" != "" ]; then
151 echo "The following .elc files have no corresponding .el files:" 166 echo "The following .elc files have no corresponding .el files:"
152 echo "${bogosities}" 167 echo "${bogosities}"
153 fi 168 fi
154 rm -f /tmp/el /tmp/elc 169 rm -f /tmp/el /tmp/elc