gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 28/36: contrib/make-dist.sh: added use of zopfli if avai


From: gnunet
Subject: [libmicrohttpd] 28/36: contrib/make-dist.sh: added use of zopfli if available
Date: Thu, 01 Jun 2023 12:30:33 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit ba5538e246d2835c0dde50f7995c87f57e2ebbb4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed May 24 21:01:39 2023 +0300

    contrib/make-dist.sh: added use of zopfli if available
---
 contrib/make-dist.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/contrib/make-dist.sh b/contrib/make-dist.sh
index 2b66c35a..47d580ac 100755
--- a/contrib/make-dist.sh
+++ b/contrib/make-dist.sh
@@ -84,11 +84,22 @@ echo '** Patched build system ready.'
 echo ''
 
 # Build the configure and the related files with patches
+
+have_command()
+{
+    command -v "$1" >/dev/null 2>&1
+}
+
 echo ''
 echo '*** Building dist tarball...'
 echo ''
 ./configure || exit 7
-make dist || exit 7
+if have_command zopfli; then
+    make dist-custm2 'ARC_CMD=zopfli -v --gzip --i15' 'ARC_EXT=tar.gz' || exit 
7
+else
+    make dist || exit 7
+    echo '* zopfli is not installed, tarball size is suboptimal.'
+fi
 echo ''
 echo '** Dist tarball ready.'
 echo ''

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]