aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorJim Blandy1992-11-07 20:36:45 +0000
committerJim Blandy1992-11-07 20:36:45 +0000
commit1dce54a11accafe0d4bea77285081a849c8b0972 (patch)
treebfc24f85f1c0b11cbb67333a5501e9b30f3395a8 /make-dist
parent43bf8b0ee3751f26b50d3c644f7dc6bb29e11f75 (diff)
downloademacs-1dce54a11accafe0d4bea77285081a849c8b0972.tar.gz
emacs-1dce54a11accafe0d4bea77285081a849c8b0972.zip
* 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-xmake-dist31
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}
95# README while the rest of the tar file is still unpacking. Whoopee. 95# README while the rest of the tar file is still unpacking. Whoopee.
96echo "Making links to top-level files." 96echo "Making links to top-level files."
97ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} 97ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
98ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} 98ln ChangeLog Makefile.in build-install.in configure config.sub ${tempdir}
99ln make-dist ${tempdir}
99# Copy these files; on the GNU machines, at least, they are symbolic 100# Copy these files; on the GNU machines, at least, they are symbolic
100# links to files on another file system, so we can't make a hard link 101# links to files on another file system, so we can't make a hard link
101# to it. Eech. 102# to it. Eech.
102cp config.sub ${tempdir} 103if [ ! -f ${tempdir}/config.sub ]; then
104 cp config.sub ${tempdir}
105fi
103 106
104echo "Creating subdirectories." 107echo "Creating subdirectories."
105for subdir in lisp lisp/term local-lisp external-lisp \ 108for subdir in lisp lisp/term local-lisp external-lisp \
@@ -146,6 +149,11 @@ echo "Making links to \`src'."
146 ../${tempdir}/src 149 ../${tempdir}/src
147 ln .gdbinit .dbxinit ../${tempdir}/src 150 ln .gdbinit .dbxinit ../${tempdir}/src
148 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src 151 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src
152 # gmalloc.c is a symbolic link to another file system, so we can't
153 # link it into ${tempdir}. We copy it. Eech.
154 if [ ! -f ../${tempdir}/src/gmalloc.c ]; then
155 cp gmalloc.c ../${tempdir}/src
156 fi
149 cd ../${tempdir}/src 157 cd ../${tempdir}/src
150 rm -f config.h paths.h Makefile 158 rm -f config.h paths.h Makefile
151 if [ -z "${newer}" ]; then 159 if [ -z "${newer}" ]; then
@@ -154,11 +162,11 @@ echo "Making links to \`src'."
154 162
155echo "Making links to \`src/m'." 163echo "Making links to \`src/m'."
156(cd src/m 164(cd src/m
157 ln README [a-zA-Z].h ../../${tempdir}/src/m) 165 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m)
158 166
159echo "Making links to \`src/s'." 167echo "Making links to \`src/s'."
160(cd src/s 168(cd src/s
161 ln README [a-zA-Z].h ../../${tempdir}/src/s) 169 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
162 170
163echo "Making links to \`lib-src'." 171echo "Making links to \`lib-src'."
164(cd lib-src 172(cd lib-src
@@ -215,6 +223,21 @@ echo "Making links to \`vms'."
215 cd ../${tempdir}/vms 223 cd ../${tempdir}/vms
216 rm -f *~) 224 rm -f *~)
217 225
226### On the GNU machines, these files are symbolic links to files on
227### another device, meaning that we can't make hard links to them in
228### the staging directory. I can't think of a better solution, so I
229### just have a special kludge here which knows exactly which files
230### this might happen to and copies them if they don't seem to have
231### been linked.
232echo "Making sure we got all the files that may be cross-device"
233echo "symbolic links."
234for file in ./config.sub ./src/gmalloc.c ; do
235 if [ ! -f ${tempdir}/${file} ] ; then
236 echo " \`${file}' was missed; copying it."
237 cp ${file} ${tempdir}/${file}
238 fi
239done
240
218echo "Making sure copying notices are all symlinks to \`etc/COPYING'." 241echo "Making sure copying notices are all symlinks to \`etc/COPYING'."
219rm -f ${tempdir}/etc/COPYING 242rm -f ${tempdir}/etc/COPYING
220cp etc/COPYING ${tempdir}/etc/COPYING 243cp etc/COPYING ${tempdir}/etc/COPYING