summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-01 06:40:41 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-01 06:40:41 +0000
commit98d4c1d0775ab95d1da1ed4b04da1028af2d5ea3 (patch)
treede55ebe2c94907d8bcaabf60663ad9014b585921 /make-dist
parent6a30e6d6d335d0f2d726a94a9e982a20bfeace73 (diff)
downloademacs-98d4c1d0775ab95d1da1ed4b04da1028af2d5ea3.tar.gz
(etc): Copy symlinks, as in src.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist18
1 files changed, 17 insertions, 1 deletions
diff --git a/make-dist b/make-dist
index fcba8c061ef..464b2f0f1de 100755
--- a/make-dist
+++ b/make-dist
@@ -6,7 +6,7 @@
#### be distributed. This means that if you add a file with an odd name,
#### you should make sure that this script will include it.
-# Copyright (C) 1995 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1997 Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
#
@@ -406,6 +406,22 @@ echo "Making links to \`etc'"
### tex litter.
(cd etc
ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc
+ ## If we ended up with a symlink, or if we did not get anything
+ ## due to a cross-device symlink, copy the file.
+ for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
+ if test -f ../${tempdir}/etc/$file; then
+ # test -f appears to succeed for a symlink
+ if test -L ../${tempdir}/etc/$file; then
+ rm ../${tempdir}/etc/$file
+ cp $file ../${tempdir}/etc
+ chmod a-w ../${tempdir}/etc/$file
+ fi
+ else
+ rm ../${tempdir}/etc/$file
+ cp $file ../${tempdir}/etc
+ chmod a-w ../${tempdir}/etc/$file
+ fi
+ done
cd ../${tempdir}/etc
rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
rm -f TAGS)