diff options
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 30 |
1 files changed, 15 insertions, 15 deletions
| @@ -6,7 +6,8 @@ | |||
| 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 | # |
| @@ -183,9 +184,9 @@ fi | |||
| 183 | if [ $check = yes ]; | 184 | if [ $check = yes ]; |
| 184 | then | 185 | then |
| 185 | ### Check for .elc files with no corresponding .el file. | 186 | ### Check for .elc files with no corresponding .el file. |
| 186 | ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el \ | 187 | ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \ |
| 187 | leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el | 188 | leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el |
| 188 | ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc \ | 189 | ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \ |
| 189 | leim/[a-z]*/[a-z]*.elc > /tmp/elc | 190 | leim/[a-z]*/[a-z]*.elc > /tmp/elc |
| 190 | bogosities="`comm -13 /tmp/el /tmp/elc`" | 191 | bogosities="`comm -13 /tmp/el /tmp/elc`" |
| 191 | if [ "${bogosities}" != "" ]; then | 192 | if [ "${bogosities}" != "" ]; then |
| @@ -195,21 +196,17 @@ then | |||
| 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-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.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-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.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 | ;; | 209 | ;; |
| 211 | term/*) | ||
| 212 | ;; | ||
| 213 | *) | 210 | *) |
| 214 | bogosities="$file $bogosities" | 211 | bogosities="$file $bogosities" |
| 215 | ;; | 212 | ;; |
| @@ -347,11 +344,12 @@ echo "Making links to \`lisp' and its subdirectories" | |||
| 347 | done | 344 | done |
| 348 | ## simula.el doesn't keep abbreviations in simula.defns any more. | 345 | ## simula.el doesn't keep abbreviations in simula.defns any more. |
| 349 | ## ln [a-zA-Z]*.defns ../${tempdir}/lisp | 346 | ## ln [a-zA-Z]*.defns ../${tempdir}/lisp |
| 350 | ln ChangeLog Makefile.in makefile.nt ChangeLog.? ../${tempdir}/lisp | 347 | ln ChangeLog ChangeLog.*[0-9] ../${tempdir}/lisp |
| 351 | ln makefile.w32-in ../${tempdir}/lisp | 348 | ln Makefile.in makefile.w32-in ../${tempdir}/lisp |
| 352 | test -f README && ln README ../${tempdir}/lisp | 349 | test -f README && ln README ../${tempdir}/lisp |
| 353 | (cd ../${tempdir}/lisp | 350 | (cd ../${tempdir}/lisp |
| 354 | rm -f TAGS =* | 351 | rm -f TAGS =* |
| 352 | rm -f ldefs-boot.el | ||
| 355 | rm -f site-init site-init.el site-init.elc | 353 | rm -f site-init site-init.el site-init.elc |
| 356 | rm -f site-load site-load.el site-load.elc | 354 | rm -f site-load site-load.el site-load.elc |
| 357 | rm -f site-start site-start.el site-start.elc | 355 | rm -f site-start site-start.el site-start.elc |
| @@ -387,7 +385,7 @@ echo "Making links to \`lisp' and its subdirectories" | |||
| 387 | 385 | ||
| 388 | if [ -f $file/ChangeLog ]; then | 386 | if [ -f $file/ChangeLog ]; then |
| 389 | ln $file/ChangeLog ../${tempdir}/lisp/$file | 387 | ln $file/ChangeLog ../${tempdir}/lisp/$file |
| 390 | for f in $file/ChangeLog.[0-9]; do | 388 | for f in $file/ChangeLog.*[0-9]; do |
| 391 | if [ -f $f ]; then | 389 | if [ -f $f ]; then |
| 392 | ln $f ../${tempdir}/lisp/$file | 390 | ln $f ../${tempdir}/lisp/$file |
| 393 | fi | 391 | fi |
| @@ -407,6 +405,8 @@ echo "Making links to \`leim' and its subdirectories" | |||
| 407 | ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/leim/ja-dic | 405 | ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/leim/ja-dic |
| 408 | ln Makefile.in ../${tempdir}/leim/Makefile.in | 406 | ln Makefile.in ../${tempdir}/leim/Makefile.in |
| 409 | ln leim-ext.el ../${tempdir}/leim/leim-ext.el | 407 | ln leim-ext.el ../${tempdir}/leim/leim-ext.el |
| 408 | ## Lisp files that start with a capital are generated from TIT | ||
| 409 | ## dictionaries so we don't distribute them. | ||
| 410 | ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/leim/quail | 410 | ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/leim/quail |
| 411 | rm -f ../${tempdir}/leim/quail/quick-b5.* | 411 | rm -f ../${tempdir}/leim/quail/quick-b5.* |
| 412 | rm -f ../${tempdir}/leim/quail/quick-cns.* | 412 | rm -f ../${tempdir}/leim/quail/quick-cns.* |