summaryrefslogtreecommitdiff
path: root/getgmissing.sh
blob: 5436fc29de937f4b0e9f0207fc4e027a99e0e4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# See COPYING file for copyright and license details.

test $# -ne 1 && echo "usage: $0 bookid" && exit

getgbook -p $1 2>/dev/null | while read i
do
	code=`echo $i|awk '{print $1}'`
	num=`echo $i|awk '{print $2}'`
	test -n "$num" && num=`printf '%04d' || num=$code
	test -f $num.png || echo $code | getgbook $1
done