diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-28 10:09:28 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-28 10:09:28 +0200 |
commit | 36c0f2f4d8aef72776a337eef05bec8cd0360e83 (patch) | |
tree | 0751342b278da2a5a67226b7450f046b50b279de /concat.sh | |
download | bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.tar.gz bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.tar.bz2 bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.zip |
Add scripts to download elberfelder from die-bibel.de
That is download is shell scripts using curl, parse books
and chapters with sed. Then prepare html with sed to be converted
to zefania xml using a xsl stylesheet.
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>' |