blob: e9b203e1472faca67b56776abe8b99aaa01ed5c8 (
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
|
#!/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\">"
i=1
while [ -e "chapters/$buch/$i" ]
do
cat "chapters/$buch/$i.xml" | sed 1d
i=$((i+1))
done
j=$((j+1))
echo "</biblebook>"
done
echo '</xmlbible>'
|