]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid "make distcheck" failure without excess .deps directories
authorPádraig Brady <P@draigBrady.com>
Wed, 30 Nov 2016 14:47:08 +0000 (14:47 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 30 Nov 2016 14:48:01 +0000 (14:48 +0000)
* Makefile.am (my-distcheck): Add the -r option to xargs so that
rmdir doesn't return an error when there are no extraneous .deps dirs.

dist-check.mk

index 9f8db134524bc6fb64591ec4994caf1cd1aedb17..afa24bfd8b2c75947b109317bd5ce15bda02e63a 100644 (file)
@@ -123,7 +123,7 @@ my-distcheck: $(DIST_ARCHIVES) $(local-check)
 # With post-v1.15 automake, "distclean" would fail to remove .deps
 # directories, leading to a spurious failure of the following recursive diff.
 # FIXME: remove this, once automake is fixed.
-       find $(t)/$(distdir).old $(t)/$(distdir) -name .deps | xargs rmdir
+       find $(t)/$(distdir).old $(t)/$(distdir) -name .deps | xargs -r rmdir
        diff -ur $(t)/$(distdir).old $(t)/$(distdir)
        -rm -rf $(t)
        rmdir $(tmpdir)/$(PACKAGE) $(tmpdir)