diff options
-rwxr-xr-x | make | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3,7 +3,6 @@ export orig="$(pwd)" export dir="$(dirname $0)" create(){ -cd $dir mkdir imgs cd imgs python3 ../data.py img || python ../data.py img || echo "You must install python3" @@ -30,8 +29,11 @@ pdftk outputs/report-double.pdf cat $(expr $(cat pageno.tex) + 1)-$(expr $(cat p rm *.log rm document/report.log cp assets/* outputs/ -rm format.tex pageno.tex document/pageno.tex pageno2.tex document/pageno2.tex -cd $orig +qrencode https://hrhr.dev/r -o qr.png || echo "For QR code, install \`qrencode\`" +magick qr.png -gravity south -background white -splice 0x10 -draw 'text 0,0 hrhr.dev/r' outputs/qr.png || echo 'Install imagemagick for qr code' +rm format.tex pageno.tex document/pageno.tex pageno2.tex document/pageno2.tex qr.svg } +cd $dir create 2>/dev/null +cd $orig |