fix test dependencies

This commit is contained in:
2021-05-19 22:57:46 +03:00
committed by Motiejus Jakštys
parent c890ddc007
commit c12326202c
2 changed files with 4 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
#!/bin/bash
set -euo pipefail
dir=$(mktemp -d)
src=${1:-mj-msc.pdf}
dst=${2:-mj-msc-full.pdf}
src=${1:-mj-msc-full.pdf}
dst=${2:-mj-msc.pdf}
echo "Extracting $src to $dir/" && pdfdetach -saveall -o "$dir" "$src"
chmod a+x "$dir/db"
echo "Generating $dir/$dst ..."
make -j $(nproc) -C "$dir" "$dst" &> "$dir/make.log" || {
echo "Generation failed. Log extract:" && tail -20 "$dir/make.log"