Mercurial > emacs
comparison make-dist @ 61525:f1e5f5261b95
Don't use DONTCOMPILE from lisp/Makefile.in; check for
"no-byte-compile: t" in the file instead.
author | Lute Kamstra <lute@gnu.org> |
---|---|
date | Wed, 13 Apr 2005 09:33:35 +0000 |
parents | b5f2181a40b9 |
children | ffa21905c7e9 146c086df160 |
comparison
equal
deleted
inserted
replaced
61524:b338826f6203 | 61525:f1e5f5261b95 |
---|---|
4 #### source tree. This basically creates a duplicate directory | 4 #### source tree. This basically creates a duplicate directory |
5 #### structure, and then hard links into it only those files that should | 5 #### structure, and then hard links into it only those files that should |
6 #### be distributed. This means that if you add a file with an odd name, | 6 #### be distributed. This means that if you add a file with an odd name, |
7 #### you should make sure that this script will include it. | 7 #### you should make sure that this script will include it. |
8 | 8 |
9 # Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. | 9 # Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2005 |
10 # Free Software Foundation, Inc. | |
10 # | 11 # |
11 # This file is part of GNU Emacs. | 12 # This file is part of GNU Emacs. |
12 # | 13 # |
13 # GNU Emacs is free software; you can redistribute it and/or modify | 14 # GNU Emacs is free software; you can redistribute it and/or modify |
14 # it under the terms of the GNU General Public License as published by | 15 # it under the terms of the GNU General Public License as published by |
193 echo "${bogosities}" | 194 echo "${bogosities}" |
194 fi | 195 fi |
195 rm -f /tmp/el /tmp/elc | 196 rm -f /tmp/el /tmp/elc |
196 | 197 |
197 ### Check for .el files with no corresponding .elc file. | 198 ### Check for .el files with no corresponding .elc file. |
198 (cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el ; \ | 199 ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el \ |
199 cd ../leim; ls -1 [a-z]*/[a-z]*.el) > /tmp/el | 200 leim/[a-z]*/[a-z]*.el > /tmp/el |
200 (cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc; \ | 201 ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc \ |
201 cd ../leim; ls -1 [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc | 202 leim/[a-z]*/[a-z]*.elc | sed 's/\.elc$/.el/' > /tmp/elc |
202 losers="`comm -23 /tmp/el /tmp/elc`" | 203 losers="`comm -23 /tmp/el /tmp/elc`" |
203 bogosities= | 204 bogosities= |
204 for file in $losers; do | 205 for file in $losers; do |
205 file1=`echo $file | sed -e "s|.*/||"` | 206 if ! grep -q "no-byte-compile: t" $file; then |
206 if ! sed -n -e "/^DONTCOMPILE/,/[^\\]\$/p" lisp/Makefile.in | | |
207 grep -q "[ ]$file1\($\| \)"; then | |
208 case $file in | 207 case $file in |
209 site-init.el | site-load.el | site-start.el | default.el) | 208 site-init.el | site-load.el | site-start.el | default.el) |
210 ;; | |
211 term/*) | |
212 ;; | 209 ;; |
213 *) | 210 *) |
214 bogosities="$file $bogosities" | 211 bogosities="$file $bogosities" |
215 ;; | 212 ;; |
216 esac | 213 esac |