- ## Avoid an error when expanding the wildcards later.
- 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)
-
-echo "Making links to \`shortnames'."
-(cd shortnames
- ln *.c ../${tempdir}/shortnames
- ln Makefile reserved special ../${tempdir}/shortnames)
-
-echo "Making links to \`vms'."
+ rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
+ rm -f TAGS)
+
+echo "Making links to \`etc/e'"
+(cd etc/e
+ ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e
+ cd ../../${tempdir}/etc/e
+ rm -f *~ \#*\# *,v =* core)
+
+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 *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
+ test -f README && ln README ../${tempdir}/man
+ test -f Makefile.in && ln Makefile.in ../${tempdir}/man
+ ln ChangeLog split-man ../${tempdir}/man
+ cp texinfo.tex ../${tempdir}/man
+ cd ../${tempdir}/man
+ rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
+ rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
+
+echo "Making links to \`vms'"