(compilation-error-regexp-alist, grep-regexp-alist
[bpt/emacs.git] / make-dist
index 48de734..a21517d 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -149,6 +149,10 @@ echo "Updating finder-inf.el."
 (cd lisp; ../src/emacs -batch -l finder -f finder-compile-keywords)
 (cd lisp; ../src/emacs -batch -f batch-byte-compile finder-inf.el)
 
+echo "Making lisp/MANIFEST"
+
+(cd lisp; head -1 *.el | grep '^;' | sed -e 's/;;; //' > MANIFEST)
+
 echo "Creating staging directory: \`${tempparent}'"
 
 mkdir ${tempparent}
@@ -205,8 +209,10 @@ echo "Making links to \`lisp'."
  ln ChangeLog Makefile makefile.nt ChangeLog.? README dired.todo ../${tempdir}/lisp
  cd ../${tempdir}/lisp
  rm -f TAGS =*
+ rm -f subdirs.el
  rm -f site-init site-init.el site-init.elc
  rm -f site-load site-load.el site-load.elc
+ rm -f site-start site-start.el site-start.elc
  rm -f default default.el default.elc)
 
 #echo "Making links to \`lisp/calc-2.02'."
@@ -243,7 +249,7 @@ echo "Making links to \`src'."
  ln .gdbinit .dbxinit ../${tempdir}/src
  ln *.opt vms-pp.trans ../${tempdir}/src
  cd ../${tempdir}/src
- rm -f config.h paths.h Makefile
+ rm -f config.h paths.h Makefile Makefile.c
  rm -f =* TAGS)
 
 echo "Making links to \`src/bitmaps'."
@@ -265,14 +271,14 @@ echo "Making links to \`lib-src'."
  ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src
  ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
  cd ../${tempdir}/lib-src
- rm -f getdate.tab.c y.tab.c y.tab.h
+ rm -f getdate.tab.c y.tab.c y.tab.h Makefile.c
  rm -f =* TAGS)
 
 echo "Making links to \`nt'."
 (cd nt
  ln emacs.ico emacs.rc config.nt config.w95 [a-z]*.in [a-z]*.c ../${tempdir}/nt
  ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt
- ln todo ChangeLog install readme ../${tempdir}/nt)
+ ln TODO ChangeLog INSTALL README ../${tempdir}/nt)
 
 echo "Making links to \`nt/inc'."
 (cd nt/inc
@@ -306,13 +312,13 @@ echo "Making links to \`etc'."
 (cd etc
  ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc
  cd ../${tempdir}/etc
- rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core
+ 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
+ cd ../../${tempdir}/etc/e
  rm -f *~ \#*\# *,v =* core)
 
 echo "Making links to \`cpp'."
@@ -363,9 +369,14 @@ done
 #### than two.  (Yes, strictly greater than 2 is correct; since we
 #### created these files by linking them in from the original tree,
 #### they'll have exactly two links normally.)
+####
+#### Commented out since it's not strictly necessary; it should suffice
+#### to just break the link on alloca.c.
 #echo "Breaking intra-tree links."
 #find ${tempdir} ! -type d -links +2 \
 #  -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
+rm -f $tempdir/lib-src/alloca.c
+cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c
 
 if [ "${newer}" ]; then
   echo "Removing files older than $newer."