Mercurial > emacs
changeset 1574:352988418dbd
* make-dist: Don't forget that the way to avoid filenames starting
with `=' is to use the pattern `[a-zA-Z0-9]*.h', not
`[a-zA-Z0-9].h'. Add a new section for dealing with files that we
couldn't make hard links to, since we have two already, and
perhaps more to come.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 07 Nov 1992 20:36:45 +0000 |
parents | 884891e455cf |
children | ae13f4027ebd |
files | make-dist |
diffstat | 1 files changed, 27 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/make-dist Sat Nov 07 07:39:11 1992 +0000 +++ b/make-dist Sat Nov 07 20:36:45 1992 +0000 @@ -95,11 +95,14 @@ # README while the rest of the tar file is still unpacking. Whoopee. echo "Making links to top-level files." ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} -ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} +ln ChangeLog Makefile.in build-install.in configure config.sub ${tempdir} +ln make-dist ${tempdir} # Copy these files; on the GNU machines, at least, they are symbolic # links to files on another file system, so we can't make a hard link # to it. Eech. -cp config.sub ${tempdir} +if [ ! -f ${tempdir}/config.sub ]; then + cp config.sub ${tempdir} +fi echo "Creating subdirectories." for subdir in lisp lisp/term local-lisp external-lisp \ @@ -146,6 +149,11 @@ ../${tempdir}/src ln .gdbinit .dbxinit ../${tempdir}/src ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src + # gmalloc.c is a symbolic link to another file system, so we can't + # link it into ${tempdir}. We copy it. Eech. + if [ ! -f ../${tempdir}/src/gmalloc.c ]; then + cp gmalloc.c ../${tempdir}/src + fi cd ../${tempdir}/src rm -f config.h paths.h Makefile if [ -z "${newer}" ]; then @@ -154,11 +162,11 @@ echo "Making links to \`src/m'." (cd src/m - ln README [a-zA-Z].h ../../${tempdir}/src/m) + ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m) echo "Making links to \`src/s'." (cd src/s - ln README [a-zA-Z].h ../../${tempdir}/src/s) + ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) echo "Making links to \`lib-src'." (cd lib-src @@ -215,6 +223,21 @@ cd ../${tempdir}/vms rm -f *~) +### On the GNU machines, these files are symbolic links to files on +### another device, meaning that we can't make hard links to them in +### the staging directory. I can't think of a better solution, so I +### just have a special kludge here which knows exactly which files +### this might happen to and copies them if they don't seem to have +### been linked. +echo "Making sure we got all the files that may be cross-device" +echo "symbolic links." +for file in ./config.sub ./src/gmalloc.c ; do + if [ ! -f ${tempdir}/${file} ] ; then + echo " \`${file}' was missed; copying it." + cp ${file} ${tempdir}/${file} + fi +done + echo "Making sure copying notices are all symlinks to \`etc/COPYING'." rm -f ${tempdir}/etc/COPYING cp etc/COPYING ${tempdir}/etc/COPYING