From: Stefano Lattarini Date: Fri, 10 Aug 2012 14:11:04 +0000 (+0200) Subject: distcheck: more resilient against possible failures X-Git-Tag: v1.12.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1dd6cce90b5ad4f2292ebedfd081a660b8dc5e9;p=thirdparty%2Fautomake.git distcheck: more resilient against possible failures * lib/am/distdir.am (distcheck): Ensure that a failure in the commands making the just-extracted source tree read-only cause the recipe to fail. While at it, save a fork by creating the '_build' and '_inst' subdir with a single mkdir invocation. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/distdir.am b/lib/am/distdir.am index f636a1e2d..07f05023c 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -449,9 +449,9 @@ distcheck: dist ## Make the new source tree read-only. Distributions ought to work in ## this case. However, make the top-level directory writable so we ## can make our new subdirs. - chmod -R a-w $(distdir); chmod u+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_inst ## Undo the write access. chmod a-w $(distdir) ## With GNU make, the following command will be executed even with "make -n",