From 01aed9a741593ab92e18b952affac67be5bf0a78 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 2 Jan 1997 07:13:01 +0000 Subject: [PATCH] (dist): Explicitly check for symlinks, and copy them. --- Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index d4e9e795..f2d98f38 100644 --- a/Makefile.in +++ b/Makefile.in @@ -155,7 +155,11 @@ dist: bison.info -rm -rf `cat .fname` mkdir `cat .fname` dst=`cat .fname`; for f in $(DISTFILES); do \ - ln $$f $$dst/$$f || { echo copying $$f; cp -p $$f $$dst/$$f ; } \ + if test -L $$f; then \ + cp $$f $$dst/$$f; chmod a-w $$dst/$$f; \ + else \ + ln $$f $$dst/$$f; \ + fi \ done tar --gzip -chf `cat .fname`.tar.gz `cat .fname` -rm -rf `cat .fname` .fname -- 2.45.2