comparison make-dist @ 86373:b4d02fc0c471

Include nXML. Don't try to copy FTP, it was removed on 2007/10/17. Don't special-case alloca.c which is no longer in CVS.
author Romain Francoise <romain@orebokech.com>
date Fri, 23 Nov 2007 18:06:58 +0000
parents 7a2e26f2fa76
children c9c2e3b42307
comparison
equal deleted inserted replaced
86372:5c15551fe048 86373:b4d02fc0c471
292 ### We copy in the top-level files before creating the subdirectories in 292 ### We copy in the top-level files before creating the subdirectories in
293 ### hopes that this will make the top-level files appear first in the 293 ### hopes that this will make the top-level files appear first in the
294 ### tar file; this means that people can start reading the INSTALL and 294 ### tar file; this means that people can start reading the INSTALL and
295 ### README while the rest of the tar file is still unpacking. Whoopee. 295 ### README while the rest of the tar file is still unpacking. Whoopee.
296 echo "Making links to top-level files" 296 echo "Making links to top-level files"
297 ln FTP INSTALL README BUGS move-if-change ${tempdir} 297 ln INSTALL README BUGS move-if-change ${tempdir}
298 ln ChangeLog Makefile.in configure configure.in ${tempdir} 298 ln ChangeLog Makefile.in configure configure.in ${tempdir}
299 ln config.bat make-dist update-subdirs vpath.sed ${tempdir} 299 ln config.bat make-dist update-subdirs vpath.sed ${tempdir}
300 ### Copy these files; they're cross-filesystem symlinks. 300 ### Copy these files; they're cross-filesystem symlinks.
301 cp mkinstalldirs ${tempdir} 301 cp mkinstalldirs ${tempdir}
302 cp config.sub ${tempdir} 302 cp config.sub ${tempdir}
322 etc/images etc/images/ezimage etc/images/gnus etc/images/gud \ 322 etc/images etc/images/ezimage etc/images/gnus etc/images/gud \
323 etc/images/icons etc/images/low-color etc/images/mail \ 323 etc/images/icons etc/images/low-color etc/images/mail \
324 etc/images/smilies etc/images/smilies/grayscale \ 324 etc/images/smilies etc/images/smilies/grayscale \
325 etc/images/smilies/medium etc/images/tree-widget \ 325 etc/images/smilies/medium etc/images/tree-widget \
326 etc/images/tree-widget/default etc/images/tree-widget/folder \ 326 etc/images/tree-widget/default etc/images/tree-widget/folder \
327 etc/refcards etc/tutorials info doc doc/emacs doc/misc doc/man \ 327 etc/refcards etc/schema etc/tutorials info doc doc/emacs \
328 doc/lispref doc/lispintro m4 msdos vms mac mac/inc \ 328 doc/misc doc/man doc/lispref doc/lispintro m4 msdos vms mac \
329 mac/inc/sys mac/src mac/Emacs.app mac/Emacs.app/Contents \ 329 mac/inc mac/inc/sys mac/src mac/Emacs.app mac/Emacs.app/Contents \
330 mac/Emacs.app/Contents/MacOS mac/Emacs.app/Contents/Resources \ 330 mac/Emacs.app/Contents/MacOS mac/Emacs.app/Contents/Resources \
331 mac/Emacs.app/Contents/Resources/English.lproj 331 mac/Emacs.app/Contents/Resources/English.lproj
332 do 332 do
333 echo " ${tempdir}/${subdir}" 333 echo " ${tempdir}/${subdir}"
334 mkdir ${tempdir}/${subdir} 334 mkdir ${tempdir}/${subdir}
372 esac 372 esac
373 done 373 done
374 374
375 for file in $subdirs; do 375 for file in $subdirs; do
376 echo " lisp/$file" 376 echo " lisp/$file"
377 mkdir ../${tempdir}/lisp/$file 377 mkdir -p ../${tempdir}/lisp/$file
378 ln $file/[a-zA-Z0-9]*.el ../${tempdir}/lisp/$file 378 ln $file/[a-zA-Z0-9]*.el ../${tempdir}/lisp/$file
379 ln $file/[a-zA-Z0-9]*.elc ../${tempdir}/lisp/$file 379 ln $file/[a-zA-Z0-9]*.elc ../${tempdir}/lisp/$file
380 for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm $file/[a-zA-Z]*.pbm; do 380 for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm $file/[a-zA-Z]*.pbm; do
381 if [ -f $img ]; then 381 if [ -f $img ]; then
382 ln $img ../${tempdir}/lisp/$file 382 ln $img ../${tempdir}/lisp/$file
573 echo "Making links to \`etc'" 573 echo "Making links to \`etc'"
574 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or 574 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
575 ### tex litter. 575 ### tex litter.
576 (cd etc 576 (cd etc
577 files=`ls -d * | grep -v CVS | grep -v RCS | grep -v 'Old' | grep -v '^e$' \ 577 files=`ls -d * | grep -v CVS | grep -v RCS | grep -v 'Old' | grep -v '^e$' \
578 | grep -v '^images$' | grep -v '^refcards$' | grep -v '^tutorials$'` 578 | grep -v '^images$' | grep -v '^refcards$' | grep -v '^tutorials$' \
579 | grep -v '^gnus$' | grep -v '^schema$'`
579 ln $files ../${tempdir}/etc 580 ln $files ../${tempdir}/etc
580 ## If we ended up with a symlink, or if we did not get anything 581 ## If we ended up with a symlink, or if we did not get anything
581 ## due to a cross-device symlink, copy the file. 582 ## due to a cross-device symlink, copy the file.
582 for file in $files; do 583 for file in $files; do
583 if test -f ../${tempdir}/etc/$file; then 584 if test -f ../${tempdir}/etc/$file; then
596 cd ../${tempdir}/etc 597 cd ../${tempdir}/etc
597 rm -f fns*.el 598 rm -f fns*.el
598 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core 599 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
599 rm -f TAGS) 600 rm -f TAGS)
600 601
601 for dir in etc/e etc/gnus etc/tutorials etc/refcards ; do 602 for dir in etc/e etc/gnus etc/tutorials etc/refcards etc/schema ; do
602 echo "Making links to \`${dir}'" 603 echo "Making links to \`${dir}'"
603 (cd ${dir} 604 (cd ${dir}
604 ln `ls -d * | grep -v CVS | grep -v RCS` ../../${tempdir}/${dir} 605 ln `ls -d * | grep -v CVS | grep -v RCS` ../../${tempdir}/${dir}
605 cd ../../${tempdir}/${dir} 606 cd ../../${tempdir}/${dir}
606 rm -f *~ \#*\# *,v =* core) 607 rm -f *~ \#*\# *,v =* core)
706 echo "Making sure copying notices are all copies of \`COPYING'" 707 echo "Making sure copying notices are all copies of \`COPYING'"
707 for subdir in . etc info leim lib-src lisp lwlib mac msdos nt src; do 708 for subdir in . etc info leim lib-src lisp lwlib mac msdos nt src; do
708 rm -f ${tempdir}/${subdir}/COPYING 709 rm -f ${tempdir}/${subdir}/COPYING
709 cp COPYING ${tempdir}/${subdir} 710 cp COPYING ${tempdir}/${subdir}
710 done 711 done
711
712 #### Make sure that there aren't any hard links between files in the
713 #### distribution; people with afs can't deal with that. Okay,
714 #### actually we just re-copy anything with a link count greater
715 #### than two. (Yes, strictly greater than 2 is correct; since we
716 #### created these files by linking them in from the original tree,
717 #### they'll have exactly two links normally.)
718 ####
719 #### Commented out since it's not strictly necessary; it should suffice
720 #### to just break the link on alloca.c.
721 #echo "Breaking intra-tree links."
722 #find ${tempdir} ! -type d -links +2 \
723 # -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
724 rm -f $tempdir/lib-src/alloca.c
725 cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c
726 712
727 if [ "${newer}" ]; then 713 if [ "${newer}" ]; then
728 echo "Removing files older than $newer" 714 echo "Removing files older than $newer"
729 ## We remove .elc files unconditionally, on the theory that anyone picking 715 ## We remove .elc files unconditionally, on the theory that anyone picking
730 ## up an incremental distribution already has a running Emacs to byte-compile 716 ## up an incremental distribution already has a running Emacs to byte-compile