diff options
| author | Richard M. Stallman | 1997-07-01 06:40:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-01 06:40:41 +0000 |
| commit | 98d4c1d0775ab95d1da1ed4b04da1028af2d5ea3 (patch) | |
| tree | de55ebe2c94907d8bcaabf60663ad9014b585921 | |
| parent | 6a30e6d6d335d0f2d726a94a9e982a20bfeace73 (diff) | |
| download | emacs-98d4c1d0775ab95d1da1ed4b04da1028af2d5ea3.tar.gz emacs-98d4c1d0775ab95d1da1ed4b04da1028af2d5ea3.zip | |
(etc): Copy symlinks, as in src.
| -rwxr-xr-x | make-dist | 18 |
1 files changed, 17 insertions, 1 deletions
| @@ -6,7 +6,7 @@ | |||
| 6 | #### be distributed. This means that if you add a file with an odd name, | 6 | #### be distributed. This means that if you add a file with an odd name, |
| 7 | #### you should make sure that this script will include it. | 7 | #### you should make sure that this script will include it. |
| 8 | 8 | ||
| 9 | # Copyright (C) 1995 Free Software Foundation, Inc. | 9 | # Copyright (C) 1995, 1997 Free Software Foundation, Inc. |
| 10 | # | 10 | # |
| 11 | # This file is part of GNU Emacs. | 11 | # This file is part of GNU Emacs. |
| 12 | # | 12 | # |
| @@ -406,6 +406,22 @@ echo "Making links to \`etc'" | |||
| 406 | ### tex litter. | 406 | ### tex litter. |
| 407 | (cd etc | 407 | (cd etc |
| 408 | ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc | 408 | ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc |
| 409 | ## If we ended up with a symlink, or if we did not get anything | ||
| 410 | ## due to a cross-device symlink, copy the file. | ||
| 411 | for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do | ||
| 412 | if test -f ../${tempdir}/etc/$file; then | ||
| 413 | # test -f appears to succeed for a symlink | ||
| 414 | if test -L ../${tempdir}/etc/$file; then | ||
| 415 | rm ../${tempdir}/etc/$file | ||
| 416 | cp $file ../${tempdir}/etc | ||
| 417 | chmod a-w ../${tempdir}/etc/$file | ||
| 418 | fi | ||
| 419 | else | ||
| 420 | rm ../${tempdir}/etc/$file | ||
| 421 | cp $file ../${tempdir}/etc | ||
| 422 | chmod a-w ../${tempdir}/etc/$file | ||
| 423 | fi | ||
| 424 | done | ||
| 409 | cd ../${tempdir}/etc | 425 | cd ../${tempdir}/etc |
| 410 | rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core | 426 | rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core |
| 411 | rm -f TAGS) | 427 | rm -f TAGS) |