From c1dd6cce90b5ad4f2292ebedfd081a660b8dc5e9 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 10 Aug 2012 16:11:04 +0200 Subject: [PATCH] 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 --- lib/am/distdir.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", -- 2.47.2