diff options
author | Jim Blandy <jimb@redhat.com> | 1992-11-07 20:36:45 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-11-07 20:36:45 +0000 |
commit | 1dce54a11accafe0d4bea77285081a849c8b0972 (patch) | |
tree | bfc24f85f1c0b11cbb67333a5501e9b30f3395a8 /make-dist | |
parent | 43bf8b0ee3751f26b50d3c644f7dc6bb29e11f75 (diff) | |
download | emacs-1dce54a11accafe0d4bea77285081a849c8b0972.tar.gz |
* 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.
Diffstat (limited to 'make-dist')
-rwxr-xr-x | make-dist | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/make-dist b/make-dist index 17921edaa3d..23d28586cdc 100755 --- a/make-dist +++ b/make-dist @@ -95,11 +95,14 @@ mkdir ${tempdir} # 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 @@ echo "Making links to \`src'." ../${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'." 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 @@ echo "Making links to \`vms'." 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 |