blob: b36039e411666612bb545e6922ba4c712f22c3d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
translation=$1
mkdir -p ${translation}/chapters/
cat ${translation}/book-list | while read buch
do
mkdir -p "${translation}/chapters/$buch"
./parse-chapter.sed "${translation}/books/$buch" | \
while read url
do
read number
echo $url
buchdir=$(echo "$buch" | sed "y/äöü /aou_/")
echo "$buch $number"
mkdir -p "${translation}/chapters/$buchdir/"
curl -s $url > "${translation}/chapters/$buchdir/$number.html"
done
done
|