diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-10-23 11:34:16 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-10-23 11:37:07 +0200 |
commit | 3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6 (patch) | |
tree | 0cf47f9100d0fbdd36d00d1ffacbc952bdc5c441 /concat.sh | |
parent | 2f116f283f4a75e52007ab66ef419dbf6ba9bf8c (diff) | |
download | bible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.tar.gz bible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.tar.bz2 bible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.zip |
Make scripts translation independent
Add menge download.
Diffstat (limited to 'concat.sh')
-rwxr-xr-x | concat.sh | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,21 +1,24 @@ #!/bin/sh +translation=$1 +title="$2" + echo '<?xml version="1.0" encoding="UTF-8"?>' -echo '<xmlbible type="x-bible" biblename="Elberfelder 2006" status="v">' +printf '<xmlbible type="x-bible" biblename="%s" status="v">\n' "$title" echo '<information>' -echo '<title>Elberfelder 2006</title>' +echo "<title>${title}</title>" echo '<format>Zefania XML Bible Markup Language</format>' echo '</information>' j=1 -cat book-list | while read buch +cat ${translation}/book-list | while read buch do echo "<biblebook bname=\"$buch\" bnumber=\"$j\">" buchdir=$(echo "$buch" | sed "y/äöü /aou_/") i=1 - while [ -e "chapters/$buchdir/$i.xml" ] + while [ -e "${translation}/chapters/$buchdir/$i.xml" ] do - cat "chapters/$buchdir/$i.xml" | sed 1d + cat "${translation}/chapters/$buchdir/$i.xml" | sed 1d i=$((i+1)) done |