Mercurial > emacs
comparison make-dist @ 19820:53fa6bca2c89
Recompile everything after updating various Lisp files.
Recompile in leim as well as lisp.
Check in leim as well as lisp for mismatched files and too-long names.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 08 Sep 1997 17:52:57 +0000 |
parents | 2cf5e8809c8e |
children | 07e5f3623def |
comparison
equal
deleted
inserted
replaced
19819:97dbdfb505f9 | 19820:53fa6bca2c89 |
---|---|
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/[a-z]*.el lisp/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el | 147 ls -1 {lisp,leim}/[a-z]*.el {lisp,leim}/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el |
148 ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc > /tmp/elc | 148 ls -1 {lisp,leim}/[a-z]*.elc {lisp,leim}/[a-z]*/[a-z]*.elc > /tmp/elc |
149 bogosities="`comm -13 /tmp/el /tmp/elc`" | 149 bogosities="`comm -13 /tmp/el /tmp/elc`" |
150 if [ "${bogosities}" != "" ]; then | 150 if [ "${bogosities}" != "" ]; then |
151 echo "The following .elc files have no corresponding .el files:" | 151 echo "The following .elc files have no corresponding .el files:" |
152 echo "${bogosities}" | 152 echo "${bogosities}" |
153 fi | 153 fi |
154 rm -f /tmp/el /tmp/elc | 154 rm -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 [a-z]*/[a-z]*.el) > /tmp/el | 157 ((cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el) |
158 (cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc | 158 (cd leim; ls -1 [a-z]*.el [a-z]*/[a-z]*.el)) > /tmp/el |
159 ((cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc) | |
160 (cd leim; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc)) | sed 's/\.elc$/.el/' > /tmp/elc | |
159 losers="`comm -23 /tmp/el /tmp/elc`" | 161 losers="`comm -23 /tmp/el /tmp/elc`" |
160 bogosities= | 162 bogosities= |
161 for file in $losers; do | 163 for file in $losers; do |
162 file1=`echo $file | sed -e "s|.*/||"` | 164 file1=`echo $file | sed -e "s|.*/||"` |
163 if ! grep -q "dontcompilefiles:.* $file1\($\| \)" lisp/Makefile; then | 165 if ! grep -q "dontcompilefiles:.* $file1\($\| \)" lisp/Makefile; then |
177 echo "${bogosities}" | 179 echo "${bogosities}" |
178 fi | 180 fi |
179 rm -f /tmp/el /tmp/elc | 181 rm -f /tmp/el /tmp/elc |
180 | 182 |
181 ### Check for .el files that would overflow the 14-char limit if compiled. | 183 ### Check for .el files that would overflow the 14-char limit if compiled. |
182 long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print` | 184 long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print |
185 find leim -name '[a-zA-Z0-9]??????????*.el' -print` | |
183 if [ "$long" != "" ]; then | 186 if [ "$long" != "" ]; then |
184 echo "The following .el file names are too long:" | 187 echo "The following .el file names are too long:" |
185 echo "$long" | 188 echo "$long" |
186 fi | 189 fi |
187 | 190 |
196 then | 199 then |
197 echo "Updating Info files" | 200 echo "Updating Info files" |
198 | 201 |
199 (cd man; make info) | 202 (cd man; make info) |
200 | 203 |
204 echo "Updating finder, custom and autoload data" | |
205 | |
206 (cd lisp; make updates EMACS=$EMACS) | |
207 | |
208 echo "Updating leim-list.el" | |
209 | |
210 (cd leim; make leim-list.el EMACS=$EMACS) | |
211 | |
201 echo "Recompiling Lisp files" | 212 echo "Recompiling Lisp files" |
202 | 213 |
203 $EMACS -batch -f batch-byte-recompile-directory lisp | 214 $EMACS -batch -f batch-byte-recompile-directory lisp leim |
204 | |
205 echo "Updating finder, custom and autoload data" | |
206 | |
207 (cd lisp; make updates EMACS=$EMACS) | |
208 | |
209 echo "Updating leim-list.el" | |
210 | |
211 (cd leim; make leim-list.el EMACS=$EMACS) | |
212 fi | 215 fi |
213 | 216 |
214 echo "Making lisp/MANIFEST" | 217 echo "Making lisp/MANIFEST" |
215 | 218 |
216 (cd lisp; head -1 [!=]*.el | grep '^;' | sed -e 's/;;; //' > MANIFEST) | 219 (cd lisp; head -1 [!=]*.el | grep '^;' | sed -e 's/;;; //' > MANIFEST) |