diff options
Diffstat (limited to 'concat.sh')
-rwxr-xr-x | concat.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/concat.sh b/concat.sh new file mode 100755 index 0000000..e9b203e --- /dev/null +++ b/concat.sh @@ -0,0 +1,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>' |