Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-10-08 22:47:39 +0300
committerMatt Clay <matt@mystile.com>2018-10-12 04:34:06 +0300
commit19c0511f571aa19d0448d36817c81657a782c050 (patch)
tree0c77f633ead9caa68f8676bc6a9a412bf5989adb /Makefile
parente43869cca99ed1aeee1c1f4796a05cfd28f3c58e (diff)
Add link check to `make sdist`.
This will cause `make sdist` to fail on platforms which create hard links of symbolic links as regular files, such as MacOS (Darwin). This prevents accidental creation of an sdist tarball without the necessary symbolic links.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a7d21b3a600..c5b01199322 100644
--- a/Makefile
+++ b/Makefile
@@ -231,8 +231,12 @@ install_manpages:
gzip -9 $(wildcard ./docs/man/man1/ansible*.1)
cp $(wildcard ./docs/man/man1/ansible*.1.gz) $(PREFIX)/man/man1/
+.PHONY: sdist_check
+sdist_check:
+ $(PYTHON) packaging/sdist/check-link-behavior.py
+
.PHONY: sdist
-sdist: clean docs
+sdist: sdist_check clean docs
$(PYTHON) setup.py sdist
.PHONY: sdist_upload