Mercurial > emacs
comparison make-dist @ 33572:a020c0f20186
Handle the Mac port. Distribute all makefile.w32-in.
Distribute more files from the nt/ subdir. Distribute PBM
image files from subdirs of lisp/. Distribute old change logs
from subdirs of lisp/. Distribute play/5x5.el.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 17 Nov 2000 16:27:49 +0000 |
parents | 7b81c864cccf |
children | 96a0426fa611 |
comparison
equal
deleted
inserted
replaced
33571:d8cb4fc7fd6c | 33572:a020c0f20186 |
---|---|
26 # Boston, MA 02111-1307, USA. | 26 # Boston, MA 02111-1307, USA. |
27 | 27 |
28 progname="$0" | 28 progname="$0" |
29 | 29 |
30 ### Exit if a command fails. | 30 ### Exit if a command fails. |
31 ### set -e | 31 set -e |
32 | 32 |
33 ### Print out each line we read, for debugging's sake. | 33 ### Print out each line we read, for debugging's sake. |
34 ### set -v | 34 ### set -v |
35 | 35 |
36 ## Don't restrict access to any files. | 36 ## Don't restrict access to any files. |
302 echo "Creating subdirectories" | 302 echo "Creating subdirectories" |
303 for subdir in lisp site-lisp leim real-leim real-leim/CXTERM-DIC \ | 303 for subdir in lisp site-lisp leim real-leim real-leim/CXTERM-DIC \ |
304 real-leim/SKK-DIC real-leim/ja-dic real-leim/quail \ | 304 real-leim/SKK-DIC real-leim/ja-dic real-leim/quail \ |
305 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ | 305 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ |
306 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ | 306 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ |
307 etc etc/e lock info man msdos vms; do | 307 etc etc/e lock info man msdos vms mac mac/inc mac/inc/sys \ |
308 mac/src | |
309 do | |
310 echo " ${tempdir}/${subdir}" | |
308 mkdir ${tempdir}/${subdir} | 311 mkdir ${tempdir}/${subdir} |
309 done | 312 done |
310 | 313 |
311 echo "Initializing \`leim' subdirectory" | 314 echo "Initializing \`leim' subdirectory" |
312 cp noleim-Makefile.in ${tempdir}/leim/Makefile.in | 315 cp noleim-Makefile.in ${tempdir}/leim/Makefile.in |
324 fi | 327 fi |
325 done | 328 done |
326 ## simula.el doesn't keep abbreviations in simula.defns any more. | 329 ## simula.el doesn't keep abbreviations in simula.defns any more. |
327 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp | 330 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp |
328 ln ChangeLog Makefile.in makefile.nt ChangeLog.? ../${tempdir}/lisp | 331 ln ChangeLog Makefile.in makefile.nt ChangeLog.? ../${tempdir}/lisp |
332 ln makefile.w32-in ../${tempdir}/lisp | |
329 test -f README && ln README ../${tempdir}/lisp | 333 test -f README && ln README ../${tempdir}/lisp |
330 (cd ../${tempdir}/lisp | 334 (cd ../${tempdir}/lisp |
331 rm -f TAGS =* | 335 rm -f TAGS =* |
332 rm -f site-init site-init.el site-init.elc | 336 rm -f site-init site-init.el site-init.elc |
333 rm -f site-load site-load.el site-load.elc | 337 rm -f site-load site-load.el site-load.elc |
349 done | 353 done |
350 | 354 |
351 for file in $subdirs; do | 355 for file in $subdirs; do |
352 echo " lisp/$file" | 356 echo " lisp/$file" |
353 mkdir ../${tempdir}/lisp/$file | 357 mkdir ../${tempdir}/lisp/$file |
354 ln $file/[a-zA-Z]*.el ../${tempdir}/lisp/$file | 358 ln $file/[a-zA-Z0-9]*.el ../${tempdir}/lisp/$file |
355 ln $file/[a-zA-Z]*.elc ../${tempdir}/lisp/$file | 359 ln $file/[a-zA-Z0-9]*.elc ../${tempdir}/lisp/$file |
356 for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm; do | 360 for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm $file/[a-zA-Z]*.pbm; do |
357 if [ -f $img ]; then | 361 if [ -f $img ]; then |
358 ln $img ../${tempdir}/lisp/$file | 362 ln $img ../${tempdir}/lisp/$file |
359 fi | 363 fi |
360 done | 364 done |
361 if [ -f $file/README ]; then | 365 if [ -f $file/README ]; then |
362 ln $file/README ../${tempdir}/lisp/$file | 366 ln $file/README ../${tempdir}/lisp/$file |
363 fi | 367 fi |
368 | |
364 if [ -f $file/ChangeLog ]; then | 369 if [ -f $file/ChangeLog ]; then |
365 ln $file/ChangeLog ../${tempdir}/lisp/$file | 370 ln $file/ChangeLog ../${tempdir}/lisp/$file |
371 for f in $file/ChangeLog.[0-9]; do | |
372 if [ -f $f ]; then | |
373 ln $f ../${tempdir}/lisp/$file | |
374 fi | |
375 done | |
366 fi | 376 fi |
367 done ) | 377 done ) |
368 | 378 |
369 echo "Making links to \`leim' and its subdirectories for the LEIM distribution" | 379 echo "Making links to \`leim' and its subdirectories for the LEIM distribution" |
370 ### Don't distribute TAGS, or =*.el files. | 380 ### Don't distribute TAGS, or =*.el files. |
371 (cd leim | 381 (cd leim |
372 ln makefile.nt ../${tempdir}/real-leim | 382 ln makefile.nt makefile.w32-in ../${tempdir}/real-leim |
373 ln ChangeLog README ../${tempdir}/real-leim | 383 ln ChangeLog README ../${tempdir}/real-leim |
374 | 384 |
375 ln CXTERM-DIC/*.tit ../${tempdir}/real-leim/CXTERM-DIC | 385 ln CXTERM-DIC/*.tit ../${tempdir}/real-leim/CXTERM-DIC |
376 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/real-leim/SKK-DIC | 386 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/real-leim/SKK-DIC |
377 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/real-leim/ja-dic | 387 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/real-leim/ja-dic |
412 cp -p $file ../${tempdir}/src | 422 cp -p $file ../${tempdir}/src |
413 chmod a-w ../${tempdir}/src/$file | 423 chmod a-w ../${tempdir}/src/$file |
414 fi | 424 fi |
415 done | 425 done |
416 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src | 426 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src |
417 ln makefile.nt vms-pp.trans ../${tempdir}/src | 427 ln makefile.nt makefile.w32-in vms-pp.trans ../${tempdir}/src |
418 ln .gdbinit .dbxinit ../${tempdir}/src | 428 ln .gdbinit .dbxinit ../${tempdir}/src |
419 cd ../${tempdir}/src | 429 cd ../${tempdir}/src |
420 rm -f config.h paths.h Makefile Makefile.c | 430 rm -f config.h paths.h Makefile Makefile.c |
421 rm -f =* TAGS) | 431 rm -f =* TAGS) |
422 | 432 |
436 echo "Making links to \`lib-src'" | 446 echo "Making links to \`lib-src'" |
437 (cd lib-src | 447 (cd lib-src |
438 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src | 448 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src |
439 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src | 449 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src |
440 ln grep-changelog rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src | 450 ln grep-changelog rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src |
451 ln makefile.w32-in ../${tempdir}/lib-src | |
441 ## If we ended up with a symlink, or if we did not get anything | 452 ## If we ended up with a symlink, or if we did not get anything |
442 ## due to a cross-device symlink, copy the file. | 453 ## due to a cross-device symlink, copy the file. |
443 for file in [a-zA-Z]*.[chy]; do | 454 for file in [a-zA-Z]*.[chy]; do |
444 if test -f ../${tempdir}/lib-src/$file; then | 455 if test -f ../${tempdir}/lib-src/$file; then |
445 # test -f appears to succeed for a symlink | 456 # test -f appears to succeed for a symlink |
459 rm -f =* TAGS) | 470 rm -f =* TAGS) |
460 | 471 |
461 echo "Making links to \`nt'" | 472 echo "Making links to \`nt'" |
462 (cd nt | 473 (cd nt |
463 ln emacs.rc config.nt [a-z]*.in [a-z]*.c ../${tempdir}/nt | 474 ln emacs.rc config.nt [a-z]*.in [a-z]*.c ../${tempdir}/nt |
475 ln _emacs nmake.defs gmake.defs ../${tempdir}/nt | |
464 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt | 476 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt |
465 ln TODO ChangeLog INSTALL README ../${tempdir}/nt) | 477 ln TODO ChangeLog INSTALL README makefile.w32-in ../${tempdir}/nt) |
466 | 478 |
467 echo "Making links to \`nt/inc'" | 479 echo "Making links to \`nt/inc'" |
468 (cd nt/inc | 480 (cd nt/inc |
469 ln [a-z]*.h ../../${tempdir}/nt/inc) | 481 ln [a-z]*.h ../../${tempdir}/nt/inc) |
470 | 482 |
481 ln [a-z]*.h ../../../${tempdir}/nt/inc/netinet) | 493 ln [a-z]*.h ../../../${tempdir}/nt/inc/netinet) |
482 | 494 |
483 echo "Making links to \`nt/icons'" | 495 echo "Making links to \`nt/icons'" |
484 (cd nt/icons | 496 (cd nt/icons |
485 ln [a-z]*.ico ../../${tempdir}/nt/icons) | 497 ln [a-z]*.ico ../../${tempdir}/nt/icons) |
498 | |
499 echo "Making links to \`mac'" | |
500 (cd mac | |
501 ln ChangeLog INSTALL README *.xml *.MPW ../${tempdir}/mac) | |
502 | |
503 echo "Making links to \`mac/inc'" | |
504 (cd mac/inc | |
505 ln [a-z]*.h ../../${tempdir}/mac/inc) | |
506 | |
507 echo "Making links to \`mac/inc/sys'" | |
508 (cd mac/inc/sys | |
509 ln [a-z]*.h ../../../${tempdir}/mac/inc/sys) | |
510 | |
511 echo "Making links to \`mac/src'" | |
512 (cd mac/src | |
513 ln [a-z]*.c *.r ../../${tempdir}/mac/src) | |
486 | 514 |
487 echo "Making links to \`msdos'" | 515 echo "Making links to \`msdos'" |
488 (cd msdos | 516 (cd msdos |
489 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos | 517 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos |
490 ln is_exec.c sigaction.c mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos | 518 ln is_exec.c sigaction.c mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos |
538 rm -f *~ \#*\# *,v =* core) | 566 rm -f *~ \#*\# *,v =* core) |
539 | 567 |
540 echo "Making links to \`info'" | 568 echo "Making links to \`info'" |
541 # Don't distribute backups or autosaves. | 569 # Don't distribute backups or autosaves. |
542 (cd info | 570 (cd info |
543 ln `find . -type f -print | grep -v CVS | grep -v RCS` ../${tempdir}/info | 571 ln `find . -type f -print | grep -v CVS | grep -v RCS | grep -v cvsignore` ../${tempdir}/info |
544 #ln [a-zA-Z]* ../${tempdir}/info | 572 #ln [a-zA-Z]* ../${tempdir}/info |
545 cd ../${tempdir}/info | 573 cd ../${tempdir}/info |
546 # Avoid an error when expanding the wildcards later. | 574 # Avoid an error when expanding the wildcards later. |
547 ln emacs dummy~ ; ln emacs \#dummy\# | 575 ln emacs dummy~ ; ln emacs \#dummy\# |
548 rm -f *~ \#*\# core) | 576 rm -f *~ \#*\# core) |