aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-09 04:27:54 +0000
committerRichard M. Stallman1997-07-09 04:27:54 +0000
commit7a6ee7aed88d3b6592ec08abc4563eca2729a652 (patch)
tree581a29c0f6a5cfc7ffaf3e9b32dd3b0c17da9a19 /make-dist
parent8d0dd9d2dd7bc7693eb953b2cc4150e771e4f95c (diff)
downloademacs-7a6ee7aed88d3b6592ec08abc4563eca2729a652.tar.gz
emacs-7a6ee7aed88d3b6592ec08abc4563eca2729a652.zip
(bogosities): Check subdirs of `lisp' also.
(etc): Really avoid symlinks now. (lisp): Don't delete from subdirs the things we never copy.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist14
1 files changed, 7 insertions, 7 deletions
diff --git a/make-dist b/make-dist
index 2fa3c31fbaa..8f3a7bfa67b 100755
--- a/make-dist
+++ b/make-dist
@@ -144,8 +144,8 @@ them, and try again." >&2
144fi 144fi
145 145
146### Check for .elc files with no corresponding .el file. 146### Check for .elc files with no corresponding .el file.
147ls -1 lisp/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el 147ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
148ls -1 lisp/[a-z]*.elc > /tmp/elc 148ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc > /tmp/elc
149bogosities="`comm -13 /tmp/el /tmp/elc`" 149bogosities="`comm -13 /tmp/el /tmp/elc`"
150if [ "${bogosities}" != "" ]; then 150if [ "${bogosities}" != "" ]; then
151 echo "The following .elc files have no corresponding .el files:" 151 echo "The following .elc files have no corresponding .el files:"
@@ -154,8 +154,8 @@ fi
154rm -f /tmp/el /tmp/elc 154rm -f /tmp/el /tmp/elc
155 155
156### Check for .el files with no corresponding .elc file. 156### Check for .el files with no corresponding .elc file.
157(cd lisp; ls -1 [a-z]*.el) > /tmp/el 157(cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el) > /tmp/el
158(cd lisp; ls -1 [a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc 158(cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc
159losers="`comm -23 /tmp/el /tmp/elc`" 159losers="`comm -23 /tmp/el /tmp/elc`"
160bogosities= 160bogosities=
161for file in $losers; do 161for file in $losers; do
@@ -292,7 +292,6 @@ echo "Making links to \`lisp' and its subdirectories"
292 if [ -f $file/README ]; then 292 if [ -f $file/README ]; then
293 ln $file/README ../${tempdir}/lisp/$file 293 ln $file/README ../${tempdir}/lisp/$file
294 fi 294 fi
295 rm -f $file/=* $file/TAGS
296 done ) 295 done )
297 296
298echo "Making links to \`leim' and its subdirectories for the LEIM distribution" 297echo "Making links to \`leim' and its subdirectories for the LEIM distribution"
@@ -429,10 +428,11 @@ echo "Making links to \`etc'"
429### Don't distribute = files, TAGS, DOC files, backups, autosaves, or 428### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
430### tex litter. 429### tex litter.
431(cd etc 430(cd etc
432 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc 431 files=`ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'`
432 ln $files ../${tempdir}/etc
433 ## If we ended up with a symlink, or if we did not get anything 433 ## If we ended up with a symlink, or if we did not get anything
434 ## due to a cross-device symlink, copy the file. 434 ## due to a cross-device symlink, copy the file.
435 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do 435 for file in $files; do
436 if test -f ../${tempdir}/etc/$file; then 436 if test -f ../${tempdir}/etc/$file; then
437 # test -f appears to succeed for a symlink 437 # test -f appears to succeed for a symlink
438 if test -L ../${tempdir}/etc/$file; then 438 if test -L ../${tempdir}/etc/$file; then