]> arthur.barton.de Git - ansible-collection-boilerplate.git/commitdiff
Makefile: Fix "distcheck" when there are multiple archives in "dist/" directory main
authorAlexander Barton <alex@barton.de>
Fri, 8 Dec 2023 21:54:15 +0000 (22:54 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 8 Dec 2023 21:54:15 +0000 (22:54 +0100)
Makefile

index df6618093b998cd7e1203fb19494d88e7a523d1e..e5d3c17bc08640059d9cef8681398df666118725 100644 (file)
--- 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 ...