summaryrefslogtreecommitdiff
path: root/concat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'concat.sh')
-rwxr-xr-xconcat.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/concat.sh b/concat.sh
index c7e72f0..d6931d1 100755
--- a/concat.sh
+++ b/concat.sh
@@ -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