aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-11-07 21:19:19 +0000
committerKarl Heuer1997-11-07 21:19:19 +0000
commitc2a3dd2e1ecf3f1bdd7dcad715d2f6cc4f49388a (patch)
tree4a2d49fd9e41b22c5a54fc57ffba36cc796dd3ca
parent287404f340132cf51aeed21423e7161d939c7d33 (diff)
downloademacs-c2a3dd2e1ecf3f1bdd7dcad715d2f6cc4f49388a.tar.gz
emacs-c2a3dd2e1ecf3f1bdd7dcad715d2f6cc4f49388a.zip
(check for .elc files): Avoid bash-specific syntax.
(check for overflow 14-char limit): Simplify.
-rwxr-xr-xmake-dist9
1 files changed, 5 insertions, 4 deletions
diff --git a/make-dist b/make-dist
index fb60c85e102..26661030617 100755
--- a/make-dist
+++ b/make-dist
@@ -144,8 +144,10 @@ 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,leim}/[a-z]*.el {lisp,leim}/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el 147ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el \
148ls -1 {lisp,leim}/[a-z]*.elc {lisp,leim}/[a-z]*/[a-z]*.elc > /tmp/elc 148 leim/[a-z]*.el leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
149ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc \
150 leim/[a-z]*.elc leim/[a-z]*/[a-z]*.elc > /tmp/elc
149bogosities="`comm -13 /tmp/el /tmp/elc`" 151bogosities="`comm -13 /tmp/el /tmp/elc`"
150if [ "${bogosities}" != "" ]; then 152if [ "${bogosities}" != "" ]; then
151 echo "The following .elc files have no corresponding .el files:" 153 echo "The following .elc files have no corresponding .el files:"
@@ -181,8 +183,7 @@ fi
181rm -f /tmp/el /tmp/elc 183rm -f /tmp/el /tmp/elc
182 184
183### Check for .el files that would overflow the 14-char limit if compiled. 185### Check for .el files that would overflow the 14-char limit if compiled.
184long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print 186long=`find lisp leim -name '[a-zA-Z0-9]??????????*.el' -print`
185 find leim -name '[a-zA-Z0-9]??????????*.el' -print`
186if [ "$long" != "" ]; then 187if [ "$long" != "" ]; then
187 echo "The following .el file names are too long:" 188 echo "The following .el file names are too long:"
188 echo "$long" 189 echo "$long"