[ovs-dev] [PATCH ovn] Makefile.am: Fix dist-hook-git target.

Ben Pfaff blp at ovn.org
Sat Feb 8 23:32:52 UTC 2020


This was broken and always printed an error.

Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1054ec21e64d..490a276085bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -225,19 +225,19 @@ dist-hook-git: distfiles
 	  (cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' | \
 	    grep -v '\.gitattributes$$' | \
 	    LC_ALL=C sort -u > all-gitfiles; \
-	  LC_ALL=C comm -1 -3 all-distfiles all-gitfiles > missing-distfiles; \
+	  LC_ALL=C comm -1 -3 distfiles all-gitfiles > missing-distfiles; \
 	  if test -s missing-distfiles; then \
 	    echo "The following files are in git but not the distribution:"; \
 	    cat missing-distfiles; \
 	    exit 1; \
 	  fi; \
-	  if LC_ALL=C grep '\.gitignore$$' all-distfiles; then \
+	  if LC_ALL=C grep '\.gitignore$$' distfiles; then \
 	    echo "See above for list of files that are distributed but"; \
 	    echo "should not be."; \
 	    exit 1; \
 	  fi \
 	fi
-CLEANFILES += all-distfiles all-gitfiles missing-distfiles
+CLEANFILES += distfiles all-gitfiles missing-distfiles
 # The following is based on commands for the Automake "distdir" target.
 distfiles: Makefile
 	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-- 
2.24.1



More information about the dev mailing list