mdbx-make: rework verification amalgamated sources during make build.

Rework 0166071ec9a7f8146bbacf9a8c218d8825f719c9 for https://github.com/erthink/libmdbx/issues/155
Related to https://github.com/erthink/libmdbx/issues/156

Change-Id: I40697203ff351d10709b3094d50b894c663c67c3
This commit is contained in:
Leonid Yuriev 2021-01-24 03:51:30 +03:00
parent 67b99eadbd
commit 0679ea07c6

View File

@ -308,9 +308,10 @@ tags:
release-assets: libmdbx-sources-$(MDBX_VERSION_SUFFIX).tar.gz libmdbx-sources-$(MDBX_VERSION_SUFFIX).zip release-assets: libmdbx-sources-$(MDBX_VERSION_SUFFIX).tar.gz libmdbx-sources-$(MDBX_VERSION_SUFFIX).zip
dist-checked.tag: $(addprefix dist/, $(DIST_SRC) $(DIST_EXTRA)) dist-checked.tag: $(addprefix dist/, $(DIST_SRC) $(DIST_EXTRA))
rm -rf $@ && echo "Check amalgamated sources..." \ @rm -rf $@ && echo -n "Verify amalgamated sources..." \
&& rm -rf dist-check && cp -r -p dist dist-check && $(MAKE) -C dist-check \ && if grep -R "define MDBX_ALLOY" dist | grep -q MDBX_BUILD_SOURCERY; then echo "sed output is WRONG!" >&2; exit 2; fi \
&& touch $@ && rm -rf dist-check && cp -r -p dist dist-check && $(MAKE) -C dist-check > dist-check/build.log 2> dist-check/build.err \
&& touch $@ || (echo " FAILED! See dist-check/build.err" >&2; exit 2) && echo " Ok"
libmdbx-sources-$(MDBX_VERSION_SUFFIX).tar.gz: dist-checked.tag libmdbx-sources-$(MDBX_VERSION_SUFFIX).tar.gz: dist-checked.tag
$(TAR) -c $(shell LC_ALL=C $(TAR) --help | grep -q -- '--owner' && echo '--owner=0 --group=0') -f - -C dist $(DIST_SRC) $(DIST_EXTRA) | gzip -c -9 > $@ \ $(TAR) -c $(shell LC_ALL=C $(TAR) --help | grep -q -- '--owner' && echo '--owner=0 --group=0') -f - -C dist $(DIST_SRC) $(DIST_EXTRA) | gzip -c -9 > $@ \