]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
dist: ignore "silly rename" files from nfs/afs/smb.
authorZack Weinberg <zackw@panix.com>
Wed, 28 Sep 2022 16:06:40 +0000 (09:06 -0700)
committerKarl Berry <karl@freefriends.org>
Wed, 28 Sep 2022 16:06:40 +0000 (09:06 -0700)
This change is per automake thread:
https://lists.gnu.org/archive/html/automake/2022-09/msg00002.html

* lib/am/distdir.am (distcleancheck_listfiles): filter "silly rename"
files (.nfs* .smb* .__afs*), unavoidably created by deleting files
that are still open in some process on network file systems.

lib/am/distdir.am

index 0f591266decb8ec94a2d7df7a48ab4698a30b46d..aa2be52381cecbe3768eb31deb55423e7465b6fc 100644 (file)
@@ -568,7 +568,9 @@ distuninstallcheck:
 ## Define distcleancheck_listfiles and distcleancheck separately
 ## from distcheck, so that they can be overridden by the user.
 .PHONY: distcleancheck
-distcleancheck_listfiles = find . -type f -print
+distcleancheck_listfiles = \
+  find . \( -type f -a \! \
+            \( -name .nfs* -o -name .smb* -o -name .__afs* \) \) -print
 distcleancheck: distclean
        @if test '$(srcdir)' = . ; then \
          echo "ERROR: distcleancheck can only run from a VPATH build" ; \