summaryrefslogtreecommitdiff
path: root/concat.sh
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:52:02 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:52:02 +0200
commitcd689b768f86707354645a65bc920eb87659fb6d (patch)
tree85a42c780416d5088ab142f45a8aa8510bb25e0e /concat.sh
parent3e1ce9c869a7b941ac17ed09a3986502f281e0ff (diff)
downloadbible-fetch-cd689b768f86707354645a65bc920eb87659fb6d.tar.gz
bible-fetch-cd689b768f86707354645a65bc920eb87659fb6d.tar.bz2
bible-fetch-cd689b768f86707354645a65bc920eb87659fb6d.zip
Dont use spaces for chapters directories
Allows us to generate xml with makefiles, which will allow parallel operation.
Diffstat (limited to 'concat.sh')
-rwxr-xr-xconcat.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/concat.sh b/concat.sh
index e9b203e..30e4f13 100755
--- a/concat.sh
+++ b/concat.sh
@@ -11,10 +11,11 @@ cat book-list | while read buch
do
echo "<biblebook bname=\"$buch\" bnumber=\"$j\">"
+ buchdir=$(echo "$buch" | sed "s/ /_/g")
i=1
- while [ -e "chapters/$buch/$i" ]
+ while [ -e "chapters/$buchdir/$i" ]
do
- cat "chapters/$buch/$i.xml" | sed 1d
+ cat "chapters/$buchdir/$i.xml" | sed 1d
i=$((i+1))
done