From: Richard M. Stallman Date: Thu, 2 Jan 1997 07:13:01 +0000 (+0000) Subject: (dist): Explicitly check for symlinks, and copy them. X-Git-Tag: GNU_ORIG~15 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/01aed9a741593ab92e18b952affac67be5bf0a78?ds=inline (dist): Explicitly check for symlinks, and copy them. --- 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