aboutsummaryrefslogtreecommitdiff
path: root/bin/compile-book
diff options
context:
space:
mode:
Diffstat (limited to 'bin/compile-book')
-rwxr-xr-xbin/compile-book3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/compile-book b/bin/compile-book
index 5c8447a..e3a8b45 100755
--- a/bin/compile-book
+++ b/bin/compile-book
@@ -18,6 +18,9 @@ if [ -z "$LANG" ]; then
LANG="en"
fi
+# Update _output.yml with language information
+sed -e "s|%%lang%%|$LANG|g" templates/_output.yml > _output.yml
+
# Set structure and templates
STRUCTURE="structure/book/$LANG"
TEMPLATES="templates/book/$LANG"