From: Stefano Lattarini Date: Tue, 30 Mar 2010 15:12:27 +0000 (+0200) Subject: Avoid another use of `chmod -R'. X-Git-Tag: v1.11.1b~88^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ff479ac3e3dd7f79d72088e8dceeec16c75240e;p=platform%2Fupstream%2Fautomake.git Avoid another use of `chmod -R'. * Makefile.am (path-check): To be safe, do not use `chmod -R' on $(distdir) before removing it (as Solaris `chmod -R' touches symlink targets). Instead, use the cleanup strategy used in distdir.am (which is also employed in tests/defs.in). --- diff --git a/ChangeLog b/ChangeLog index 74b297066..99e0f5ff0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-03-30 Stefano Lattarini + + Avoid another use of `chmod -R'. + * Makefile.am (path-check): To be safe, do not use `chmod -R' on + $(distdir) before removing it (as Solaris `chmod -R' touches + symlink targets). Instead, use the cleanup strategy used in + distdir.am. + 2010-03-28 Ralf Wildenhues Remove uses of @acronym and @sc. diff --git a/Makefile.am b/Makefile.am index d176d7b6a..82e1aef55 100644 --- a/Makefile.am +++ b/Makefile.am @@ -483,7 +483,8 @@ path-check: distdir ## of files on stdin, at least. find . -print | xargs pathchk -p); \ status=$$?; \ - chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \ + find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \ + rm -rf $(distdir); \ exit $$status ## Program to use to fetch files. diff --git a/Makefile.in b/Makefile.in index 9088a0b63..dd81522b3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1153,7 +1153,8 @@ path-check: distdir (cd $(distdir) && \ find . -print | xargs pathchk -p); \ status=$$?; \ - chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \ + find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \ + rm -rf $(distdir); \ exit $$status fetch: