- for dummy in DOC-dummy dummy~ \#dummy\# dummy.dvi dummy.log; do
- ln MACHINES ${dummy}
- done
- rm -f DOC* *~ \#*\# *.dvi *.log core)
-
-# For now, we comment these out, since I'm not changing them any.
-#!! echo "Making links to \`cpp'."
-#!! (cd cpp
-#!! ln cccp.c cexp.y Makefile README ../${tempdir}/cpp)
-#!!
-#!! echo "Making links to \`info'."
-#!! # Don't distribute backups or autosaves.
-#!! (cd info
-#!! ln [a-zA-Z]* ../${tempdir}/info
-#!! cd ../${tempdir}/info
-#!! # Avoid an error when expanding the wildcards later.
-#!! ln emacs dummy~ ; ln emacs \#dummy\#
-#!! rm -f *~ \#*\# core)
-#!!
-#!! echo "Making links to \`man'."
-#!! (cd man
-#!! ln *.tex *.texinfo *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
-#!! ln *.c ../${tempdir}/man
-#!! ln ChangeLog Makefile README split-man ../${tempdir}/man)
+ ln emacs dummy~ ; ln emacs \#dummy\#
+ rm -f *~ \#*\# core)
+
+echo "Making links to \`man'."
+(cd man
+ ln *.tex *.texinfo *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
+ ln *.c ../${tempdir}/man
+ test -f README && ln README ../${tempdir}/man
+ test -f Makefile && ln Makefile ../${tempdir}/man
+ ln ChangeLog split-man ../${tempdir}/man
+ cp texinfo.tex texindex.c ../${tempdir}/man
+ cd ../${tempdir}/man
+ rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
+ rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)