Mercurial > emacs
comparison make-dist @ 18654:c5f070514f07
Set up real-leim subdirectory,
with the real contents of leim; then move it to
a separate top-level directory.
Initialize a `leim' subdirectory with leim-Makefile.in.
Don't mention site-lisp, site-init, site-start
or default, when listing files hat are not compiled and should be.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 07 Jul 1997 03:42:47 +0000 |
parents | 614b4d642525 |
children | 678528c8dd4f |
comparison
equal
deleted
inserted
replaced
18653:2c1f73252c1c | 18654:c5f070514f07 |
---|---|
158 (cd lisp; ls -1 [a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc | 158 (cd lisp; ls -1 [a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc |
159 losers="`comm -23 /tmp/el /tmp/elc`" | 159 losers="`comm -23 /tmp/el /tmp/elc`" |
160 bogosities= | 160 bogosities= |
161 for file in $losers; do | 161 for file in $losers; do |
162 if ! grep -q "dontcompilefiles:.* $file\($\| \)" lisp/Makefile; then | 162 if ! grep -q "dontcompilefiles:.* $file\($\| \)" lisp/Makefile; then |
163 bogosities="$file $bogosities" | 163 if [ "$file" != site-init.el ] && [ "$file" != site-load.el ] \ |
164 && [ "$file" != site-start.el ] && [ "$file" != default.el ]; then | |
165 bogosities="$file $bogosities" | |
166 fi | |
164 fi | 167 fi |
165 done | 168 done |
166 if [ "${bogosities}" != "" ]; then | 169 if [ x"${bogosities}" != x"" ]; then |
167 echo "The following .el files have no corresponding .elc files:" | 170 echo "The following .el files have no corresponding .elc files:" |
168 echo "${bogosities}" | 171 echo "${bogosities}" |
169 fi | 172 fi |
170 rm -f /tmp/el /tmp/elc | 173 rm -f /tmp/el /tmp/elc |
171 | 174 |
238 version=${version} README > tmp.README | 241 version=${version} README > tmp.README |
239 mv tmp.README README) | 242 mv tmp.README README) |
240 | 243 |
241 | 244 |
242 echo "Creating subdirectories" | 245 echo "Creating subdirectories" |
243 for subdir in lisp site-lisp \ | 246 for subdir in lisp site-lisp leim real-leim real-leim/CXTERM-DIC \ |
247 real-leim/SKK real-leim/skk real-leim/quail \ | |
244 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ | 248 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ |
245 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \ | 249 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \ |
246 etc etc/e lock cpp info man msdos vms; do | 250 etc etc/e lock cpp info man msdos vms; do |
247 mkdir ${tempdir}/${subdir} | 251 mkdir ${tempdir}/${subdir} |
248 done | 252 done |
253 | |
254 echo "Initializing \`leim' subdirectory" | |
255 cp leim-Makefile.in ${tempdir}/leim/Makefile.in | |
249 | 256 |
250 echo "Making links to \`lisp' and its subdirectories" | 257 echo "Making links to \`lisp' and its subdirectories" |
251 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. | 258 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. |
252 (cd lisp | 259 (cd lisp |
253 ln [a-zA-Z]*.el ../${tempdir}/lisp | 260 ln [a-zA-Z]*.el ../${tempdir}/lisp |
285 if [ -f $file/README ]; then | 292 if [ -f $file/README ]; then |
286 ln $file/README ../${tempdir}/lisp/$file | 293 ln $file/README ../${tempdir}/lisp/$file |
287 fi | 294 fi |
288 rm -f $file/=* $file/TAGS | 295 rm -f $file/=* $file/TAGS |
289 done ) | 296 done ) |
297 | |
298 echo "Making links to \`leim' and its subdirectories for the LEIM distribution" | |
299 ### Don't distribute TAGS, or =*.el files. | |
300 (cd leim | |
301 ln Makefile.in makefile.nt ../${tempdir}/real-leim | |
302 ln ChangeLog.? README ../${tempdir}/real-leim | |
303 | |
304 ln CXTERM-DIC/*.tit ../${tempdir}/real-leim/CXTERM-DIC | |
305 ln SKK/README SKK/SKK-JISYO.L ../${tempdir}/real-leim/SKK | |
306 ln skk/*.el skk/*.elc ../${tempdir}/real-leim/skk | |
307 ln quail/*.el quail/*.elc ../${tempdir}/real-leim/quail | |
308 | |
309 cd ../${tempdir}/real-leim | |
310 rm -f TAGS =* */=*) | |
311 | |
312 ### Move the real-leim directory outside of Emacs proper. | |
313 (cd ${tempparent}; mv ${emacsname}/real-leim ${emacsname}-leim) | |
290 | 314 |
291 echo "Making links to \`src'" | 315 echo "Making links to \`src'" |
292 ### Don't distribute =*.[ch] files, or the configured versions of | 316 ### Don't distribute =*.[ch] files, or the configured versions of |
293 ### config.in, paths.in, or Makefile.in, or TAGS. | 317 ### config.in, paths.in, or Makefile.in, or TAGS. |
294 (cd src | 318 (cd src |
513 fi | 537 fi |
514 case "${default_gzip}" in | 538 case "${default_gzip}" in |
515 compress* ) gzip_extension=.Z ;; | 539 compress* ) gzip_extension=.Z ;; |
516 * ) gzip_extension=.gz ;; | 540 * ) gzip_extension=.gz ;; |
517 esac | 541 esac |
518 echo "Creating tar file" | 542 echo "Creating tar files" |
519 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ | 543 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ |
520 | ${default_gzip} \ | 544 | ${default_gzip} \ |
521 > ${emacsname}.tar${gzip_extension} | 545 > ${emacsname}.tar${gzip_extension} |
546 (cd ${tempparent} ; tar cvf - ${emacsname}-leim ) \ | |
547 | ${default_gzip} \ | |
548 > ${emacsname}-leim.tar${gzip_extension} | |
522 fi | 549 fi |
523 | 550 |
524 if [ "${clean_up}" = yes ]; then | 551 if [ "${clean_up}" = yes ]; then |
525 echo "Cleaning up the staging directory" | 552 echo "Cleaning up the staging directory" |
526 rm -rf ${tempparent} | 553 rm -rf ${tempparent} |
527 else | 554 else |
528 (cd ${tempparent}; mv ${emacsname} ..) | 555 (cd ${tempparent}; mv ${emacsname} ${emacsname}-leim ..) |
529 rm -rf ${tempparent} | 556 rm -rf ${tempparent} |
530 fi | 557 fi |
531 | 558 |
532 ### make-dist ends here | 559 ### make-dist ends here |