mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
contrib/make-dist.sh: added use of zopfli if available
This commit is contained in:
+12
-1
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user