comparison make-dist @ 96526:914fd1aed50a

(EMACS): Doc fix. (lisp): There are no *.dat or image files here any more. (src): There are no *.s files here any more. (etc/images, etc/images/*): Link to most regular files.
author Glenn Morris <rgm@gnu.org>
date Sat, 05 Jul 2008 20:01:01 +0000
parents 527d3f141bfc
children 406f89aec7ee
comparison
equal deleted inserted replaced
96525:b6c89c6c537a 96526:914fd1aed50a
139 else 139 else
140 case $EMACS in 140 case $EMACS in
141 /*) ;; 141 /*) ;;
142 *) 142 *)
143 if [ ! -f "$EMACS" ]; then 143 if [ ! -f "$EMACS" ]; then
144 echo "$0: You must specify the EMACS environment variable " \ 144 echo "$0: You must set the EMACS environment variable " \
145 "to an absolute file name." 2>&1 145 "to an absolute file name." 2>&1
146 exit 1 146 exit 1
147 fi;; 147 fi;;
148 esac 148 esac
149 fi 149 fi
349 echo "Making links to \`lisp' and its subdirectories" 349 echo "Making links to \`lisp' and its subdirectories"
350 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. 350 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el.
351 (cd lisp 351 (cd lisp
352 ln [a-zA-Z]*.el ../${tempdir}/lisp 352 ln [a-zA-Z]*.el ../${tempdir}/lisp
353 ln [a-zA-Z]*.elc ../${tempdir}/lisp 353 ln [a-zA-Z]*.elc ../${tempdir}/lisp
354 ln [a-zA-Z]*.dat ../${tempdir}/lisp
355 for img in [a-zA-Z]*.xpm [a-zA-Z]*.xbm [a-zA-Z]*.pbm; do
356 # If there are no images, the shell won't expand the pattern.
357 if [ -f $img ]; then
358 ln $img ../${tempdir}/lisp
359 fi
360 done
361 ## simula.el doesn't keep abbreviations in simula.defns any more. 354 ## simula.el doesn't keep abbreviations in simula.defns any more.
362 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp 355 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp
363 ln ChangeLog ChangeLog.*[0-9] ../${tempdir}/lisp 356 ln ChangeLog ChangeLog.*[0-9] ../${tempdir}/lisp
364 ln Makefile.in makefile.w32-in ../${tempdir}/lisp 357 ln Makefile.in makefile.w32-in ../${tempdir}/lisp
365 test -f README && ln README ../${tempdir}/lisp 358 test -f README && ln README ../${tempdir}/lisp
436 ### config.in, paths.in, or Makefile.in, or TAGS. 429 ### config.in, paths.in, or Makefile.in, or TAGS.
437 (cd src 430 (cd src
438 echo " (It is ok if ln fails in some cases.)" 431 echo " (It is ok if ln fails in some cases.)"
439 ln [a-zA-Z]*.c ../${tempdir}/src 432 ln [a-zA-Z]*.c ../${tempdir}/src
440 ln [a-zA-Z]*.h ../${tempdir}/src 433 ln [a-zA-Z]*.h ../${tempdir}/src
441 ln [a-zA-Z]*.s ../${tempdir}/src
442 ln [a-zA-Z]*.in ../${tempdir}/src 434 ln [a-zA-Z]*.in ../${tempdir}/src
443 ln [a-zA-Z]*.opt ../${tempdir}/src 435 ln [a-zA-Z]*.opt ../${tempdir}/src
444 ## If we ended up with a symlink, or if we did not get anything 436 ## If we ended up with a symlink, or if we did not get anything
445 ## due to a cross-device symlink, copy the file. 437 ## due to a cross-device symlink, copy the file.
446 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do 438 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
611 rm -f *~ \#*\# *,v =* core) 603 rm -f *~ \#*\# *,v =* core)
612 done 604 done
613 605
614 echo "Making links to \`etc/images'" 606 echo "Making links to \`etc/images'"
615 (cd etc/images 607 (cd etc/images
616 for img in README [a-zA-Z]*.xpm [a-zA-Z]*.xbm [a-zA-Z]*.pbm; do 608 for f in *; do
617 if [ -f $img ]; then 609 [ -f "$f" ] || continue
618 ln $img ../../${tempdir}/etc/images 610 case $f in
619 fi 611 (*~|\#*\#|*,v|=*|core) continue ;;
612 esac
613 ln $f ../../${tempdir}/etc/images
620 done) 614 done)
621 615
622 for dir in etc/images/ezimage etc/images/gnus etc/images/gud etc/images/icons \ 616 for dir in etc/images/ezimage etc/images/gnus etc/images/gud etc/images/icons \
623 etc/images/low-color etc/images/mail etc/images/smilies ; do 617 etc/images/low-color etc/images/mail etc/images/smilies ; do
624 echo "Making links to \`${dir}'" 618 echo "Making links to \`${dir}'"
625 (cd ${dir} 619 (cd ${dir}
626 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../${tempdir}/${dir} 620 for f in *; do
627 cd ../../../${tempdir}/${dir} 621 [ -f "$f" ] || continue
628 rm -f *~ \#*\# *,v =* core) 622 case $f in
623 (*~|\#*\#|*,v|=*|core) continue ;;
624 esac
625 ln $f ../../../${tempdir}/${dir}
626 done
627 )
629 done 628 done
630 629
631 for dir in etc/images/tree-widget/default etc/images/tree-widget/folder \ 630 for dir in etc/images/tree-widget/default etc/images/tree-widget/folder \
632 etc/images/smilies/grayscale etc/images/smilies/medium; do 631 etc/images/smilies/grayscale etc/images/smilies/medium; do
633 echo "Making links to \`${dir}'" 632 echo "Making links to \`${dir}'"