Improve error detection in "make releasetar". [skip ci]

(Same as in libpcap commit d62ed0c.)

Before:

$ make releasetar
tar: CONTRIBUTING: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Cleaning...
$ make distclean

After:

$ make releasetar
tar: CONTRIBUTING: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make: *** [Makefile:475: releasetar] Error 2
This commit is contained in:
Denis Ovsienko 2022-06-15 00:02:41 +01:00
parent c7ab3c6320
commit 9a0d013dfc
2 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ Monthday, Month DD, YYYY by gharris and denis
RPKI-Router: Refine length and bounds checks.
Building and testing:
Add a configure option to help debugging (--enable-instrument-functions)
Improve error detection in "make releasetar".
TBD
Summary for 4.99.2 tcpdump release (so far!)

View File

@ -475,7 +475,9 @@ releasetar:
@autoreconf -f && \
name=$(PROG)-`cat VERSION` && \
mkdir $$name && \
tar cf - $(CSRC) $(HDR) $(LIBNETDISSECT_SRC) $(EXTRA_DIST) $(TEST_DIST) >/dev/null && \
tar cf - $(CSRC) $(HDR) $(LIBNETDISSECT_SRC) $(EXTRA_DIST) $(TEST_DIST) | (cd $$name; tar xf -) && \
tar cf - $$name >/dev/null && \
tar cf - $$name | gzip >$$name.tar.gz && \
rm -rf $$name