comparison make-dist @ 109063:c77749185234

merge trunk
author Kenichi Handa <handa@etlken>
date Thu, 24 Jun 2010 15:10:43 +0900
parents 4f510fa72be2
children 8d976ea08d41
comparison
equal deleted inserted replaced
108814:9d7ea82188d8 109063:c77749185234
279 echo "Making lisp/MANIFEST" 279 echo "Making lisp/MANIFEST"
280 280
281 (cd lisp; 281 (cd lisp;
282 files=`echo [!=]*.el | sed -e 's/ subdirs.el / /' -e 's/ default.el / /'` 282 files=`echo [!=]*.el | sed -e 's/ subdirs.el / /' -e 's/ default.el / /'`
283 for dir in [!=]*; do 283 for dir in [!=]*; do
284 if [ -d $dir ] && [ $dir != term ] && [ $dir != CVS ] && [ $dir != RCS ] 284 if [ -d $dir ] && [ $dir != term ]
285 then 285 then
286 echo $dir 286 echo $dir
287 thisdir=`echo $dir/[!=]*.el | sed -e 's/ subdirs.el / /'` 287 thisdir=`echo $dir/[!=]*.el | sed -e 's/ subdirs.el / /'`
288 files="$files $thisdir" 288 files="$files $thisdir"
289 fi 289 fi
381 ) 381 )
382 382
383 ## Find all subdirs of lisp dir 383 ## Find all subdirs of lisp dir
384 for file in `find . -type d -print`; do 384 for file in `find . -type d -print`; do
385 case $file in 385 case $file in
386 . | .. | */Old | */CVS | */RCS | */=*) 386 . | .. | */=*)
387 ;; 387 ;;
388 *) 388 *)
389 if [ -d $file ]; then 389 if [ -d $file ]; then
390 subdirs="$file $subdirs" 390 subdirs="$file $subdirs"
391 fi 391 fi
578 578
579 echo "Making links to \`etc'" 579 echo "Making links to \`etc'"
580 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or 580 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
581 ### tex litter. 581 ### tex litter.
582 (cd etc 582 (cd etc
583 files=`ls -d * | grep -v CVS | grep -v RCS | grep -v 'Old' | grep -v '^e$' \ 583 files=`ls -d * | grep -v '^e$' \
584 | grep -v '^charsets$' | grep -v '^gnus$' | grep -v '^images$' | grep -v '^nxml$' \ 584 | grep -v '^charsets$' | grep -v '^gnus$' | grep -v '^images$' | grep -v '^nxml$' \
585 | grep -v '^refcards$' | grep -v '^tutorials$'| grep -v '^schema$'` 585 | grep -v '^refcards$' | grep -v '^tutorials$'| grep -v '^schema$'`
586 ln $files ../${tempdir}/etc 586 ln $files ../${tempdir}/etc
587 ## If we ended up with a symlink, or if we did not get anything 587 ## If we ended up with a symlink, or if we did not get anything
588 ## due to a cross-device symlink, copy the file. 588 ## due to a cross-device symlink, copy the file.
606 rm -f TAGS) 606 rm -f TAGS)
607 607
608 for dir in etc/charsets etc/e etc/gnus etc/nxml etc/tutorials etc/refcards etc/schema ; do 608 for dir in etc/charsets etc/e etc/gnus etc/nxml etc/tutorials etc/refcards etc/schema ; do
609 echo "Making links to \`${dir}'" 609 echo "Making links to \`${dir}'"
610 (cd ${dir} 610 (cd ${dir}
611 ln `ls -d * | grep -v CVS | grep -v RCS` ../../${tempdir}/${dir} 611 ln `ls -d *` ../../${tempdir}/${dir}
612 cd ../../${tempdir}/${dir} 612 cd ../../${tempdir}/${dir}
613 rm -f *~ \#*\# *,v =* core) 613 rm -f *~ \#*\# *,v =* core)
614 done 614 done
615 615
616 echo "Making links to \`etc/images'" 616 echo "Making links to \`etc/images'"
640 640
641 for dir in etc/images/tree-widget/default etc/images/tree-widget/folder \ 641 for dir in etc/images/tree-widget/default etc/images/tree-widget/folder \
642 etc/images/smilies/grayscale etc/images/smilies/medium; do 642 etc/images/smilies/grayscale etc/images/smilies/medium; do
643 echo "Making links to \`${dir}'" 643 echo "Making links to \`${dir}'"
644 (cd ${dir} 644 (cd ${dir}
645 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../../${tempdir}/${dir} 645 ln `ls -d *` ../../../../${tempdir}/${dir}
646 cd ../../../../${tempdir}/${dir} 646 cd ../../../../${tempdir}/${dir}
647 rm -f *~ \#*\# *,v =* core) 647 rm -f *~ \#*\# *,v =* core)
648 done 648 done
649 649
650 for dir in etc/images/icons/hicolor/*/apps \ 650 for dir in etc/images/icons/hicolor/*/apps \
651 etc/images/icons/hicolor/*/mimetypes; do 651 etc/images/icons/hicolor/*/mimetypes; do
652 echo "Making links to \`${dir}'" 652 echo "Making links to \`${dir}'"
653 (cd ${dir} 653 (cd ${dir}
654 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../../../../${tempdir}/${dir} 654 ln `ls -d *` ../../../../../../${tempdir}/${dir}
655 cd ../../../../../../${tempdir}/${dir} 655 cd ../../../../../../${tempdir}/${dir}
656 rm -f *~ \#*\# *,v =* core) 656 rm -f *~ \#*\# *,v =* core)
657 done 657 done
658 658
659 echo "Making links to \`info'" 659 echo "Making links to \`info'"
660 # Don't distribute backups or autosaves. 660 # Don't distribute backups or autosaves.
661 (cd info 661 (cd info
662 ln `find . -type f -print | grep -v CVS | grep -v RCS | grep -v cvsignore` ../${tempdir}/info 662 ln `find . -type f -print` ../${tempdir}/info
663 #ln [a-zA-Z]* ../${tempdir}/info 663 #ln [a-zA-Z]* ../${tempdir}/info
664 cd ../${tempdir}/info 664 cd ../${tempdir}/info
665 # Avoid an error when expanding the wildcards later. 665 # Avoid an error when expanding the wildcards later.
666 ln emacs dummy~ ; ln emacs \#dummy\# 666 ln emacs dummy~ ; ln emacs \#dummy\#
667 rm -f *~ \#*\# core .arch-inventory .gitignore) 667 rm -f *~ \#*\# core .arch-inventory .gitignore)