mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 11:53:11 +02:00
build-pdf: only determine language if needed
This commit is contained in:
parent
f907fcbb2f
commit
77d0160191
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,6 @@ set -ex
|
||||||
function process_page {
|
function process_page {
|
||||||
pageDir="$1"
|
pageDir="$1"
|
||||||
folder=$(basename "${pageDir}")
|
folder=$(basename "${pageDir}")
|
||||||
language="${folder##*.}"
|
|
||||||
case $folder in
|
case $folder in
|
||||||
pages.bn | pages.ja | pages.ko | pages.ml | pages.ta | pages.th | pages.zh | pages.zh_TW)
|
pages.bn | pages.ja | pages.ko | pages.ml | pages.ta | pages.th | pages.zh | pages.zh_TW)
|
||||||
;;
|
;;
|
||||||
|
@ -15,6 +14,7 @@ function process_page {
|
||||||
python3 render.py "${pageDir}" -c solarized-light
|
python3 render.py "${pageDir}" -c solarized-light
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
language="${folder##*.}"
|
||||||
python3 render.py "${pageDir}" -c basic -o "tldr-book-${language}.pdf"
|
python3 render.py "${pageDir}" -c basic -o "tldr-book-${language}.pdf"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue