Skip to content

Commit

Permalink
Improve the missing commit_hash.h diagnostic in tarball builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ksedgwic committed Oct 28, 2024
1 parent 965e131 commit 567a139
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,14 @@ commit_hash.h: FORCE
echo "$(srcdir)/commit_hash.h is up-to-date."; \
fi \
else \
echo "Using existing $(srcdir)/commit_hash.h"; \
if [ ! -f $(srcdir)/commit_hash.h ]; then \
echo "Error: commit_hash.h is missing.!!!"; \
echo "Maybe you need the other release tarball?"; \
echo "(the one named \"Source code\" is **NOT** the one you want ...)"; \
exit 1; \
else \
echo "Using existing $(srcdir)/commit_hash.h"; \
fi \
fi

# Ensure that commit_hash.h is included in the source tarball.
Expand Down

0 comments on commit 567a139

Please sign in to comment.