comparison make-dist @ 11226:d5c5dab73f87

(lib-src): Don't copy *.lex; it doesn't exist anymore. (man): Don't copy texindex.c and getopt.c; they're deleted. (etc): Omit `e'; it's a subdirectory. (etc/e): Use `../..', not `..', to reference top level.
author Karl Heuer <kwzh@gnu.org>
date Thu, 06 Apr 1995 21:09:09 +0000
parents cf940edd7667
children 52bf246dd940
comparison
equal deleted inserted replaced
11225:725b1d733c48 11226:d5c5dab73f87
239 (cd src/s 239 (cd src/s
240 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/s) 240 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/s)
241 241
242 echo "Making links to \`lib-src'." 242 echo "Making links to \`lib-src'."
243 (cd lib-src 243 (cd lib-src
244 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src 244 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src
245 ln ChangeLog Makefile.in.in README testfile vcdiff ../${tempdir}/lib-src 245 ln ChangeLog Makefile.in.in README testfile vcdiff ../${tempdir}/lib-src
246 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src 246 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
247 cd ../${tempdir}/lib-src 247 cd ../${tempdir}/lib-src
248 rm -f getdate.tab.c y.tab.c y.tab.h 248 rm -f getdate.tab.c y.tab.c y.tab.h
249 rm -f =* TAGS) 249 rm -f =* TAGS)
284 284
285 echo "Making links to \`etc'." 285 echo "Making links to \`etc'."
286 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or 286 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
287 ### tex litter. 287 ### tex litter.
288 (cd etc 288 (cd etc
289 ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc 289 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc
290 cd ../${tempdir}/etc 290 cd ../${tempdir}/etc
291 rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core 291 rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core
292 rm -f TAGS) 292 rm -f TAGS)
293 293
294 echo "Making links to \`etc/e'." 294 echo "Making links to \`etc/e'."
295 (cd etc/e 295 (cd etc/e
296 ln `ls -d * | grep -v 'RCS'` ../${tempdir}/etc/e 296 ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e
297 cd ../${tempdir}/etc 297 cd ../../${tempdir}/etc
298 rm -f DOC* *~ \#*\# *,v =* core) 298 rm -f *~ \#*\# *,v =* core)
299 299
300 echo "Making links to \`cpp'." 300 echo "Making links to \`cpp'."
301 (cd cpp 301 (cd cpp
302 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) 302 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp)
303 303
314 (cd man 314 (cd man
315 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man 315 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
316 test -f README && ln README ../${tempdir}/man 316 test -f README && ln README ../${tempdir}/man
317 test -f Makefile.in && ln Makefile.in ../${tempdir}/man 317 test -f Makefile.in && ln Makefile.in ../${tempdir}/man
318 ln ChangeLog split-man ../${tempdir}/man 318 ln ChangeLog split-man ../${tempdir}/man
319 cp texinfo.tex texindex.c getopt.c ../${tempdir}/man 319 cp texinfo.tex ../${tempdir}/man
320 cd ../${tempdir}/man 320 cd ../${tempdir}/man
321 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail 321 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
322 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux) 322 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
323 323
324 echo "Making links to \`vms'." 324 echo "Making links to \`vms'."
340 done 340 done
341 341
342 #### Make sure that there aren't any hard links between files in the 342 #### Make sure that there aren't any hard links between files in the
343 #### distribution; people with afs can't deal with that. Okay, 343 #### distribution; people with afs can't deal with that. Okay,
344 #### actually we just re-copy anything with a link count greater 344 #### actually we just re-copy anything with a link count greater
345 #### than two. 345 #### than two. (Yes, strictly greater than 2 is correct; since we
346 #### created these files by linking them in from the original tree,
347 #### they'll have exactly two links normally.)
346 echo "Breaking intra-tree links." 348 echo "Breaking intra-tree links."
347 find ${tempdir} ! -type d -links +2 \ 349 find ${tempdir} ! -type d -links +2 \
348 -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \; 350 -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
349 351
350 if [ "${newer}" ]; then 352 if [ "${newer}" ]; then