From 4729765c73b3bb474a54f2adbf611c8b54167c96 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 8 Dec 2023 22:54:15 +0100 Subject: [PATCH] Makefile: Fix "distcheck" when there are multiple archives in "dist/" directory --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index df66180..e5d3c17 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ dist: all $(VENV_BIN)/ansible-galaxy distcheck: dist # Run tests on distribution archive ... mkdir -p "$(DIST_D)/check" - tar -C "$(DIST_D)/check" -xzf "$(DIST_D)"/*.tar.gz + tar -C "$(DIST_D)/check" -xzf $$(find "$(DIST_D)" -name '*.tar.gz' | sort -Vr | head -n1) test -e "$(VENV_D)" && ln -fs "$(VENV_D)" "$(DIST_D)/check/.venv" make -C "$(DIST_D)/check" check # Clean up ... -- 2.39.2