Mercurial > emacs
comparison make-dist @ 20217:815e934f5ffc
(check for .elc files): Avoid bash-specific syntax.
(check for overflow 14-char limit): Simplify.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 07 Nov 1997 21:19:19 +0000 |
parents | 07e5f3623def |
children | 72b506b0fbcc |
comparison
equal
deleted
inserted
replaced
20216:a63f69267334 | 20217:815e934f5ffc |
---|---|
142 them, and try again." >&2 | 142 them, and try again." >&2 |
143 exit 1 | 143 exit 1 |
144 fi | 144 fi |
145 | 145 |
146 ### Check for .elc files with no corresponding .el file. | 146 ### Check for .elc files with no corresponding .el file. |
147 ls -1 {lisp,leim}/[a-z]*.el {lisp,leim}/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el | 147 ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el \ |
148 ls -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 |
149 ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc \ | |
150 leim/[a-z]*.elc leim/[a-z]*/[a-z]*.elc > /tmp/elc | |
149 bogosities="`comm -13 /tmp/el /tmp/elc`" | 151 bogosities="`comm -13 /tmp/el /tmp/elc`" |
150 if [ "${bogosities}" != "" ]; then | 152 if [ "${bogosities}" != "" ]; then |
151 echo "The following .elc files have no corresponding .el files:" | 153 echo "The following .elc files have no corresponding .el files:" |
152 echo "${bogosities}" | 154 echo "${bogosities}" |
153 fi | 155 fi |
179 echo "${bogosities}" | 181 echo "${bogosities}" |
180 fi | 182 fi |
181 rm -f /tmp/el /tmp/elc | 183 rm -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. |
184 long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print | 186 long=`find lisp leim -name '[a-zA-Z0-9]??????????*.el' -print` |
185 find leim -name '[a-zA-Z0-9]??????????*.el' -print` | |
186 if [ "$long" != "" ]; then | 187 if [ "$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" |
189 fi | 190 fi |
190 | 191 |