blob: ff3baa3409cafda74492be6d7d284098ffdd769a (
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 "s/ /_/g")
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>'
|