Skip to content
Snippets Groups Projects
Commit 9aaef8b6 authored by Ben Gamari's avatar Ben Gamari
Browse files

gitlab-ci: Detect available xz compressors

It's been harder than expected to ensure that pxz is universally
available. Let's just detect which to use for now.
parent 77180eed
No related merge requests found
......@@ -14,6 +14,18 @@ if [[ -z ${BUILD_SPHINX_PDF:-} ]]; then BUILD_SPHINX_PDF=YES; fi
if [[ -z ${INTEGER_LIBRARY:-} ]]; then INTEGER_LIBRARY=integer-gmp; fi
if [[ -z ${BUILD_FLAVOUR:-} ]]; then BUILD_FLAVOUR=perf; fi
if [[ -z ${XZ:-} ]]; then
if which pxz; then
XZ=pxz
elif which xz; then
XZ=xz
else
echo "error: pxz nor xz were found"
exit 1
fi
fi
cat > mk/build.mk <<EOF
V=1
HADDOCK_DOCS=YES
......@@ -23,7 +35,7 @@ BUILD_SPHINX_HTML=$BUILD_SPHINX_HTML
BUILD_SPHINX_PDF=$BUILD_SPHINX_PDF
BeConservative=YES
INTEGER_LIBRARY=$INTEGER_LIBRARY
XZ_CMD=pxz
XZ_CMD=$XZ
EOF
cat <<EOF >> mk/build.mk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment