(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}
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'."
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'."
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
(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'."
#### 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."