]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
fix scantopdf ocr jobs
authorBastian Dehn <hhaalo@arcor.de>
Sat, 4 Apr 2026 06:34:34 +0000 (08:34 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 4 Apr 2026 06:34:34 +0000 (08:34 +0200)
Makefile
src/addocr.sh

index 36a30c4d148fd7d9b9ce3c2ca997d3b0b165bd54..4962ca831589b702f91d83ad725f693bacae6d66 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,8 @@ clean:
 ################################################################################
 
 $(BUILDDIR)/parts/scanbasic.sh: \
+       $(SRCDIR)/errlog.sh \
+       $(SRCDIR)/keywords.sh \
        $(SRCDIR)/addocr.sh \
        $(SRCDIR)/scanbasic.sh
 
index 8997962e19a179a089b3e642a54cf791d122e29c..18f3d0a948820ee346cc9528d054dbda8709a8f1 100644 (file)
@@ -27,7 +27,7 @@ addocr()
                || return $?
 
        echo "ℹ️  INFO: adding ocr on file $input"
-       ocrmypdf --quiet --jobs $(nproc) --language deu $input $output \
+       ocrmypdf --quiet --jobs $jobs --language deu $input $output \
                || errlog "could not add ocr on $input" \
                        || return $?