-done
-if [ x"${bogosities}" != x"" ]; then
- echo "The following .el files have no corresponding .elc files:"
- echo "${bogosities}"
-fi
-rm -f /tmp/el /tmp/elc
+ rm -f /tmp/el /tmp/elc
+
+ ### Check for .el files with no corresponding .elc file.
+ (cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el ; \
+ cd ../leim; ls -1 [a-z]*/[a-z]*.el) > /tmp/el
+ (cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc; \
+ cd ../leim; ls -1 [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc
+ losers="`comm -23 /tmp/el /tmp/elc`"
+ bogosities=
+ for file in $losers; do
+ file1=`echo $file | sed -e "s|.*/||"`
+ if ! sed -n -e "/^DONTCOMPILE/,/[^\\]\$/p" lisp/Makefile.in |
+ grep -q "[ ]$file1\($\| \)"; then
+ case $file in
+ site-init.el | site-load.el | site-start.el | default.el)
+ ;;
+ term/*)
+ ;;
+ *)
+ bogosities="$file $bogosities"
+ ;;
+ esac
+ fi
+ done
+ if [ x"${bogosities}" != x"" ]; then
+ echo "The following .el files have no corresponding .elc files:"
+ echo "${bogosities}"
+ fi
+ rm -f /tmp/el /tmp/elc