summaryrefslogtreecommitdiff
path: root/make-xml.sh
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-06-28 10:09:28 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-06-28 10:09:28 +0200
commit36c0f2f4d8aef72776a337eef05bec8cd0360e83 (patch)
tree0751342b278da2a5a67226b7450f046b50b279de /make-xml.sh
downloadbible-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 'make-xml.sh')
-rwxr-xr-xmake-xml.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/make-xml.sh b/make-xml.sh
new file mode 100755
index 0000000..dace25c
--- /dev/null
+++ b/make-xml.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+./list-chapters.sh | while read file
+do
+ echo "$file"
+ ./convert.sed "$file" | \
+ xsltproc --encoding utf-8 --html convert.xsl - > "${file}.xml"
+done