Skip to content
Snippets Groups Projects
Commit bf0b21da authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Makefile: Check for empty files and dirs on distcheck


Including empty files can cause unnecessary warnings for packagers.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 2750b299
No related branches found
No related tags found
No related merge requests found
...@@ -751,6 +751,15 @@ distcheck-hook: ...@@ -751,6 +751,15 @@ distcheck-hook:
echo "Found backup files in final archive." 1>&2; \ echo "Found backup files in final archive." 1>&2; \
exit 1; \ exit 1; \
fi fi
# Empty files or directories should not be distributed. They can cause
# unnecessary warnings for packagers. Directories used by automake during
# distcheck must be excluded.
if find $(top_distdir) -empty -and -not \( \
-path $(top_distdir)/_build -or \
-path $(top_distdir)/_inst \) | grep .; then \
echo "Found empty files or directories in final archive." 1>&2; \
exit 1; \
fi
if test -n "$(BUILD_RELEASE)" && \ if test -n "$(BUILD_RELEASE)" && \
grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \ grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \
echo "Found unreleased version in NEWS." >&2; \ echo "Found unreleased version in NEWS." >&2; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment