dotfiles/.bin/documents-import
2023-11-28 21:34:09 +01:00

10 lines
252 B
Plaintext
Executable File

#/bin/sh -xe
. ${HOME}/.bin/_config
needs tesseract
doas pkg_add tesseract tesseract-deu ocrmypdf
mkdir -p ${PIMDIR}/documents/_incoming
mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/
${HOME}/.bin/documents-update
${HOME}/.bin/documents-ocr