comparison make-dist @ 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 e790c2486512
children 8c779144d540
comparison
equal deleted inserted replaced
1573:884891e455cf 1574:352988418dbd
93 # hopes that this will make the top-level files appear first in the 93 # hopes that this will make the top-level files appear first in the
94 # tar file; this means that people can start reading the INSTALL and 94 # tar file; this means that people can start reading the INSTALL and
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.
96 echo "Making links to top-level files." 96 echo "Making links to top-level files."
97 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} 97 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
98 ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} 98 ln ChangeLog Makefile.in build-install.in configure config.sub ${tempdir}
99 ln 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.
102 cp config.sub ${tempdir} 103 if [ ! -f ${tempdir}/config.sub ]; then
104 cp config.sub ${tempdir}
105 fi
103 106
104 echo "Creating subdirectories." 107 echo "Creating subdirectories."
105 for subdir in lisp lisp/term local-lisp external-lisp \ 108 for subdir in lisp lisp/term local-lisp external-lisp \
106 src src/m src/s lib-src oldXMenu \ 109 src src/m src/s lib-src oldXMenu \
107 etc lock arch-lib cpp info man shortnames vms; do 110 etc lock arch-lib cpp info man shortnames vms; do
144 ln [a-zA-Z]*.s ../${tempdir}/src 147 ln [a-zA-Z]*.s ../${tempdir}/src
145 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ 148 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \
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
152 etags *.h *.c ../lisp/*.el 160 etags *.h *.c ../lisp/*.el
153 fi) 161 fi)
154 162
155 echo "Making links to \`src/m'." 163 echo "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
159 echo "Making links to \`src/s'." 167 echo "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
163 echo "Making links to \`lib-src'." 171 echo "Making links to \`lib-src'."
164 (cd lib-src 172 (cd lib-src
165 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex [a-zA-Z]*.com ../${tempdir}/lib-src 173 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex [a-zA-Z]*.com ../${tempdir}/lib-src
166 ln ChangeLog Makefile.in README testfile vcdiff rcs2log ../${tempdir}/lib-src 174 ln ChangeLog Makefile.in README testfile vcdiff rcs2log ../${tempdir}/lib-src
213 (cd vms 221 (cd vms
214 ln [0-9a-zA-Z]* ../${tempdir}/vms 222 ln [0-9a-zA-Z]* ../${tempdir}/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.
232 echo "Making sure we got all the files that may be cross-device"
233 echo "symbolic links."
234 for 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
239 done
240
218 echo "Making sure copying notices are all symlinks to \`etc/COPYING'." 241 echo "Making sure copying notices are all symlinks to \`etc/COPYING'."
219 rm -f ${tempdir}/etc/COPYING 242 rm -f ${tempdir}/etc/COPYING
220 cp etc/COPYING ${tempdir}/etc/COPYING 243 cp etc/COPYING ${tempdir}/etc/COPYING
221 for subdir in lisp external-lisp src lib-src info shortnames; do 244 for subdir in lisp external-lisp src lib-src info shortnames; do
222 if [ -f ${tempdir}/${subdir}/COPYING ]; then 245 if [ -f ${tempdir}/${subdir}/COPYING ]; then