comparison make-dist @ 19962:07e5f3623def

(making links to `src'): Keep timestamp on copied files.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Sep 1997 12:32:49 +0000
parents 53fa6bca2c89
children 815e934f5ffc
comparison
equal deleted inserted replaced
19961:be32396bfb04 19962:07e5f3623def
342 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do 342 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
343 if test -f ../${tempdir}/src/$file; then 343 if test -f ../${tempdir}/src/$file; then
344 # test -f appears to succeed for a symlink 344 # test -f appears to succeed for a symlink
345 if test -L ../${tempdir}/src/$file; then 345 if test -L ../${tempdir}/src/$file; then
346 rm ../${tempdir}/src/$file 346 rm ../${tempdir}/src/$file
347 cp $file ../${tempdir}/src 347 cp -p $file ../${tempdir}/src
348 chmod a-w ../${tempdir}/src/$file 348 chmod a-w ../${tempdir}/src/$file
349 fi 349 fi
350 else 350 else
351 rm ../${tempdir}/src/$file 351 rm ../${tempdir}/src/$file
352 cp $file ../${tempdir}/src 352 cp -p $file ../${tempdir}/src
353 chmod a-w ../${tempdir}/src/$file 353 chmod a-w ../${tempdir}/src/$file
354 fi 354 fi
355 done 355 done
356 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src 356 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src
357 ln makefile.nt vms-pp.trans ../${tempdir}/src 357 ln makefile.nt vms-pp.trans ../${tempdir}/src