layer2img.py with arrowplots

This commit is contained in:
2021-05-19 22:57:46 +03:00
committed by Motiejus Jakštys
parent 3053799975
commit b92ac92c90
3 changed files with 185 additions and 6 deletions

View File

@@ -5,8 +5,7 @@ fname=${1:-mj-msc-all.pdf}
echo "Extracting $fname to $dir/" && pdfdetach -saveall -o "$dir" "$fname"
echo "Generating $dir/$fname ..."
make -j $(nproc) -C "$dir" "$fname" &> "$dir/make.log" || {
echo "Generation failed. Here are the last 20 log lines:"
tail -20 "$dir/make.log"
echo "Generation failed. Log extract:" && tail -20 "$dir/make.log"
exit 1
}
echo "Opening $dir/$fname ..." && xdg-open "$dir/$fname"