cp config.sub ${tempdir}
echo "Creating subdirectories."
-for subdir in lisp lisp/calc-2.02 lisp/term local-lisp external-lisp \
- src src/m src/s lib-src oldXMenu \
+# I think we're not going to distribute anything in external-lisp, so
+# I've removed it from this list.
+for subdir in lisp lisp/calc-2.02 lisp/term local-lisp \
+ src src/m src/s src/bitmaps lib-src oldXMenu \
etc lock cpp info man shortnames vms; do
mkdir ${tempdir}/${subdir}
done
ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term
ln README ../../${tempdir}/lisp/term)
-echo "Making links to \`external-lisp'."
-### Don't distribute =*.el files.
-(cd external-lisp
- ln [a-zA-Z]*.el ../${tempdir}/external-lisp
- ln [a-zA-Z]*.elc ../${tempdir}/external-lisp
- ln ChangeLog README ../${tempdir}/external-lisp)
+### echo "Making links to \`external-lisp'."
+### ### Don't distribute =*.el files.
+### (cd external-lisp
+### ln [a-zA-Z]*.el ../${tempdir}/external-lisp
+### ln [a-zA-Z]*.elc ../${tempdir}/external-lisp
+### ln ChangeLog README ../${tempdir}/external-lisp)
echo "Making links to \`src'."
### Don't distribute =*.[ch] files, or the configured versions of
echo " (If we can't link gmalloc.c, that's okay.)"
ln [a-zA-Z]*.c ../${tempdir}/src
## Might be a symlink to a file on another filesystem.
- cp gmalloc.c ../${tempdir}/src
+ test -f ../${tempdir}/src/gmalloc.c || cp gmalloc.c ../${tempdir}/src
ln [a-zA-Z]*.h ../${tempdir}/src
ln [a-zA-Z]*.s ../${tempdir}/src
ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \
etags *.h *.c ../lisp/*.el
fi)
+echo "Making links to \`src/bitmaps'."
+(cd src/bitmaps
+ ln README *.xbm ../../${tempdir}/src/bitmaps)
+
echo "Making links to \`src/m'."
(cd src/m
ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m)
(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)
+ test -f README && ln README ../${tempdir}/man
+ test -f Makefile && ln Makefile ../${tempdir}/man
+ ln ChangeLog split-man ../${tempdir}/man)
echo "Making links to \`shortnames'."
(cd shortnames
echo "Making sure copying notices are all copies of \`etc/COPYING'."
rm -f ${tempdir}/etc/COPYING
cp etc/COPYING ${tempdir}/etc/COPYING
-for subdir in lisp external-lisp src lib-src info shortnames; do
+# I think we're not going to distribute anything in external-lisp, so
+# I've removed it from this list.
+for subdir in lisp src lib-src info shortnames; do
if [ -f ${tempdir}/${subdir}/COPYING ]; then
rm ${tempdir}/${subdir}/COPYING
fi