*** empty log message ***
[bpt/emacs.git] / make-dist
index aeaff4f..41631f2 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -101,8 +101,10 @@ ln make-dist ${tempdir}
 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
@@ -137,12 +139,12 @@ echo "Making links to \`lisp/term'."
  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
@@ -151,7 +153,7 @@ echo "Making links to \`src'."
  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 \
@@ -164,6 +166,10 @@ echo "Making links to \`src'."
    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)
@@ -209,7 +215,9 @@ 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)
+ 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
@@ -227,7 +235,9 @@ echo "Making links to \`vms'."
 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