aboutsummaryrefslogtreecommitdiff
path: root/contrib/make-dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/make-dist.sh')
-rwxr-xr-xcontrib/make-dist.sh13
1 files changed, 12 insertions, 1 deletions
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.'
84echo '' 84echo ''
85 85
86# Build the configure and the related files with patches 86# Build the configure and the related files with patches
87
88have_command()
89{
90 command -v "$1" >/dev/null 2>&1
91}
92
87echo '' 93echo ''
88echo '*** Building dist tarball...' 94echo '*** Building dist tarball...'
89echo '' 95echo ''
90./configure || exit 7 96./configure || exit 7
91make dist || exit 7 97if have_command zopfli; then
98 make dist-custm2 'ARC_CMD=zopfli -v --gzip --i15' 'ARC_EXT=tar.gz' || exit 7
99else
100 make dist || exit 7
101 echo '* zopfli is not installed, tarball size is suboptimal.'
102fi
92echo '' 103echo ''
93echo '** Dist tarball ready.' 104echo '** Dist tarball ready.'
94echo '' 105echo ''