blob: c7e72f061e1546088ebbe832134f5870d035214c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<xmlbible type="x-bible" biblename="Elberfelder 2006" status="v">'
echo '<information>'
echo '<title>Elberfelder 2006</title>'
echo '<format>Zefania XML Bible Markup Language</format>'
echo '</information>'
j=1
cat book-list | while read buch
do
echo "<biblebook bname=\"$buch\" bnumber=\"$j\">"
buchdir=$(echo "$buch" | sed "y/äöü /aou_/")
i=1
while [ -e "chapters/$buchdir/$i.xml" ]
do
cat "chapters/$buchdir/$i.xml" | sed 1d
i=$((i+1))
done
j=$((j+1))
echo "</biblebook>"
done
echo '</xmlbible>'
|