init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
26
scan-luchsingen.sh
Executable file
26
scan-luchsingen.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
name=$1; shift
|
||||
|
||||
if [ "$#" -ge 1 ]; then
|
||||
source="ADF Duplex"
|
||||
else
|
||||
source="ADF Front"
|
||||
fi
|
||||
|
||||
|
||||
#basename="$name-$(date +%F)"
|
||||
basename="$name"
|
||||
batchname="${basename}-%d.pnm"
|
||||
pdfname="${basename}.pdf"
|
||||
|
||||
cd "$dir"
|
||||
scanimage -d 'fujitsu:ScanSnap S1500:16799' --mode lineart --resolution 300 \
|
||||
--source "$source" --batch="$batchname" || true
|
||||
|
||||
gm convert $(ls -v ${basename}*.pnm) "${basename}.pdf"
|
||||
|
||||
rm -f "${basename}"*.pnm
|
||||
Loading…
Add table
Add a link
Reference in a new issue