From 844e5482c76ac5e511c7219d7cf3cf3078b14a4a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 12 May 2019 19:17:11 +0200 Subject: [PATCH] Autotools: Produce .tar.{gz,lz,xz} release archives (#236, #258) --- expat/Changes | 1 + expat/Makefile.am | 3 ++- expat/distribute.sh | 15 ++++++++++++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/expat/Changes b/expat/Changes index 49eb7ee2..0fc289ef 100644 --- a/expat/Changes +++ b/expat/Changes @@ -13,6 +13,7 @@ Release x.x.x XXX XXXXXX XX XXXX #243 Windows: Fix syntax of .def module definition files #245 #246 Autotools: Fix check for -fvisibility=hidden for Clang #247 #248 Autotools: Fix compilation for lack of docbook2x-man + #236 #258 Autotools: Produce .tar.{gz,lz,xz} release archives Special thanks to: Benjamin Peterson diff --git a/expat/Makefile.am b/expat/Makefile.am index fbfc469b..81b18780 100644 --- a/expat/Makefile.am +++ b/expat/Makefile.am @@ -30,8 +30,9 @@ AUTOMAKE_OPTIONS = \ dist-bzip2 \ + dist-lzip \ + dist-xz \ foreign \ - no-dist-gzip \ subdir-objects ACLOCAL_AMFLAGS = -I m4 diff --git a/expat/distribute.sh b/expat/distribute.sh index 50829d18..d282f203 100755 --- a/expat/distribute.sh +++ b/expat/distribute.sh @@ -10,11 +10,20 @@ PS4='# ' set -x version="$(./conftools/get-version.sh lib/expat.h)" -archive=expat-${version}.tar.bz2 ./buildconf.sh ./configure make distcheck -gpg --armor --output ${archive}.asc --detach-sign ${archive} -gpg --verify ${archive}.asc ${archive} +extensions=( + gz + bz2 + lz + xz +) + +for ext in ${extensions[@]} ; do + archive=expat-${version}.tar.${ext} + gpg --armor --output ${archive}.asc --detach-sign ${archive} + gpg --verify ${archive}.asc ${archive} +done