automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} distcheck: more resilient against possible failures


From: Stefano Lattarini
Subject: [FYI] {maint} distcheck: more resilient against possible failures
Date: Fri, 10 Aug 2012 16:22:25 +0200

* 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 <address@hidden>
---
 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 3063b8a..1f2eef0 100644
--- a/lib/am/distdir.am
+++ b/lib/am/distdir.am
@@ -422,9 +422,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",
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]