From a5ccbc2dfe4adb47f2c41ac2d783759350aad09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 24 Apr 2022 11:08:41 +0300 Subject: [PATCH] mdbx-make: add `.tar.xz`, `.tar.bz2`, `.zpaq` archvive to release-assets. --- GNUmakefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index aae0414a..1537108b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -586,7 +586,11 @@ tags: @echo ' FETCH git tags...' $(QUIET)git fetch --tags --force -release-assets: libmdbx-amalgamated-$(MDBX_GIT_VERSION).tar.gz libmdbx-amalgamated-$(subst .,_,$(MDBX_GIT_VERSION)).zip +release-assets: libmdbx-amalgamated-$(MDBX_GIT_VERSION).zpaq \ + libmdbx-amalgamated-$(MDBX_GIT_VERSION).tar.xz \ + libmdbx-amalgamated-$(MDBX_GIT_VERSION).tar.bz2 \ + libmdbx-amalgamated-$(MDBX_GIT_VERSION).tar.gz \ + libmdbx-amalgamated-$(subst .,_,$(MDBX_GIT_VERSION)).zip $(QUIET)([ \ "$$(set -o pipefail; git describe | sed -n '/^v[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}$$/p' || echo fail-left)" \ == \ @@ -605,9 +609,22 @@ dist-checked.tag: $(addprefix dist/, $(DIST_SRC) $(DIST_EXTRA)) @echo ' CREATE $@' $(QUIET)$(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.xz: dist-checked.tag + @echo ' CREATE $@' + $(QUIET)$(TAR) -c $(shell LC_ALL=C $(TAR) --help | grep -q -- '--owner' && echo '--owner=0 --group=0') -f - -C dist $(DIST_SRC) $(DIST_EXTRA) | xz -9 -z >$@ + +%.tar.bz2: dist-checked.tag + @echo ' CREATE $@' + $(QUIET)$(TAR) -c $(shell LC_ALL=C $(TAR) --help | grep -q -- '--owner' && echo '--owner=0 --group=0') -f - -C dist $(DIST_SRC) $(DIST_EXTRA) | bzip2 -9 -z >$@ + + %.zip: dist-checked.tag @echo ' CREATE $@' - $(QUIET)rm -rf $@ && (cd dist && $(ZIP) -9 ../$@ $(DIST_SRC) $(DIST_EXTRA)) + $(QUIET)rm -rf $@ && (cd dist && $(ZIP) -9 ../$@ $(DIST_SRC) $(DIST_EXTRA)) &>zip.log + +%.zpaq: dist-checked.tag + @echo ' CREATE $@' + $(QUIET)rm -rf $@ && (cd dist && zpaq a ../$@ $(DIST_SRC) $(DIST_EXTRA) -m59) &>zpaq.log dist/mdbx.h: mdbx.h src/version.c $(lastword $(MAKEFILE_LIST)) @echo ' COPY $@'